#include using namespace std; int main() { int n, count = 0; string str; bool first, second, third, fourth; string check = "!@#$%^&*()-+"; first = second = third = fourth = false; cin >> n; cin >> str; for(int i = 0; i < str.size(); i++){ if(str.at(i) >= '0' and str.at(i) <= '9'){ first = true; } if(str.at(i) >= 'a' and str.at(i) <= 'z'){ second = true; } if(str.at(i) >= 'A' and str.at(i) <= 'Z'){ third = true; } for(int j = 0; j < check.size(); j++){ if(str.at(i) == check.at(j)){ fourth = true; break; } } } if(!first){ count++; } if(!second){ count++; } if(!third){ count++; } if(!fourth){ count++; } if(n+count >= 6){ cout << count << endl; } else{ n += count; cout << 6-n+count << endl; } }