#include<iostream>
#include<cctype>
#include<algorithm>
using namespace std;
int main() {
string str; cin >> str;
int n = str.size();
int e = count_if(str.begin(), str.end(), [](auto x) {return isalpha(x);});
int d = count_if(str.begin(), str.end(), [](auto x) {return isdigit(x);});
int c = str.end() - unique(str.begin(), str.end(), [](auto a, auto b) {return isdigit(a) && isdigit(b);});
cout << n * 3 + e * 3 + d * 2 - !e * n - !d * n - c * 2 + (e && d && n >= 8 ? 10 : -5) << endl;
return 0;
}
不要貼答案啦
別人還要玩