#include<bits/stdc++.h>
using namespace std;
char c[205];
int ans;
int main(){
gets(c);
for(int i=0;i<strlen(c);i++){
if(c[i]=='a'||c[i]=='d'||c[i]=='g'||c[i]=='j'||c[i]=='m'||c[i]=='p'||c[i]=='t'||c[i]=='w'||c[i]==' ')
ans+=1;
else
if(c[i]=='b'||c[i]=='e'||c[i]=='h'||c[i]=='k'||c[i]=='n'||c[i]=='q'||c[i]=='u'||c[i]=='x')
ans+=2;
else
if(c[i]=='c'||c[i]=='f'||c[i]=='i'||c[i]=='l'||c[i]=='o'||c[i]=='r'||c[i]=='v'||c[i]=='y')
ans+=3;
else
ans+=4;
}
cout<<ans;
return 0;
}