#include <bits/stdc++.h>
int aa[27]={0,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};
using namespace std;
int main()
{
int ans=0;
string a;
getline(cin,a);
int j=a.length();
for(int i=0;i<j;i++)
{
if(a[i]>=97&&a[i]<=122)
{
ans+=aa[a[i]-'a'+1];
}
else ans++;
}
cout<<ans;
}