#include <bits/stdc++.h> using namespace std; int main() { char a[27] = {"12312312312312312341231234"}, b; int c = 0; while ((b = getchar()) != 10) { if (b != ' ') c += a[b-97] - 48; else c++; } cout << c <<"\n"; return 0; }