#include<iostream>
#include<cstring>
#include<cmath>
#include<cstdio>
#include<cstdlib>
#include<string>
#pragma warning (disable:4996)
using namespace std;
int main()
{
string s;
int cent=0;
getline(cin, s);
for (int i = 0; i < s.size(); i++)
{
if (s[i] == 's' || s[i] == 'z')
cent += 4;
else if (s[i] == 'b' || s[i] == 'e' || s[i] == 'h' || s[i] == 'k' || s[i] == 'n' || s[i] == 'q' || s[i] == 'u' || s[i] == 'x')
cent += 2;
else if (s[i] == 'c' || s[i] == 'f' || s[i] == 'i' || s[i] == 'l' || s[i] == 'o' || s[i] == 'r' || s[i] == 'v' || s[i] == 'y')
cent += 3;
else
cent++;
}
cout << cent;
return 0;
}
vs里面测试样例是对的,不知道为什么交上去一直过不了