#include <iostream>
#include <cstdlib>
#include <cstring>
using namespace std;
char jj[27] = {' ', 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z'};
int n[27] = {1, 1, 2, 3, 1, 2, 3, 1, 2, 3, 1, 2, 3, 1, 2, 3, 1, 2, 3, 4, 1, 2, 3, 1, 2, 3, 4};
int main(){
string a;
int cnt = 0;
cin >> a;
int b = a.size();
for(int i = 0;i < b;++i){
for(int j = 0;j <= 26;++j){
if(a[i] == jj[j]){
cnt+=n[j];
}
}
}
cout << cnt;
exit(0);
}