#include using namespace std; int x; string s; string a[] = { "0123456789", "abcdefghijklmnopqrstuvwxyz", "ABCDEFGHIJKLMNOPQRSTUVWXYZ", "!@#$%^&*()-+" }; int main(){ ios_base::sync_with_stdio(0); cin.tie(NULL); cout.tie(NULL); cin >> s >> s; for(string y : a) for(int i = 0 ; i < y.size() ; i++) if(count(s.begin(), s.end(), y[i])){ x++; break; } int n = s.size(); n += 4-x; cout << max(0, 6-n)+4-x << endl; return 0; }