#include #include #include #include using namespace std; #define MP make_pair #define ST first #define ND second int main(){ ios_base::sync_with_stdio(false); int n; cin >> n; string s; cin >> s; bool hasNumber = false; bool hasLowerCase = false; bool hasUpperCase = false; bool hasSpecialCharacter = false; for(char c : s){ if(c >= '0' && c <= '9'){ hasNumber = true; } else if(c >= 'a' && c <= 'z'){ hasLowerCase = true; } else if(c >= 'A' && c <= 'Z'){ hasUpperCase = true; } else if(c == '!' || c == '@' || c == '#' || c == '$' || c == '%' || c == '^' || c == '&' || c == '*' || c == '(' || c == ')' || c == '-' || c == '+'){ hasSpecialCharacter = true; } } int result = 0; if(!hasNumber) result++; if(!hasLowerCase) result++; if(!hasUpperCase) result++; if(!hasSpecialCharacter) result++; while(result + n < 6) result++; cout << result << endl; return 0; }