#include #define scan(x) scanf("%d",&x) #define scanl(x) scanf("%lld",&x) #define print(x) printf("%d\n",x) #define printl(x) printf("%lld\n",x) #define prints(x) printf("%s\n",x) #define REP(i,a,b) for(int i=0;i=0;i-=a) #define LREP(i,a,b) for(long long int i=0;i=0;i-=a) #define F first #define S second #define PB push_back #define MP make_pair //not needed for acm-icpc //freopen("input.txt", "r", stdin); //freopen("output.txt", "w", stdout using namespace std; typedef long long ll; typedef vector vi; typedef pair pi; /*vector > matrix(RR); for ( int i = 0 ; i < RR ; i++ ) matrix[i].resize(CC); */ int main() { ios::sync_with_stdio(0); cin.tie(0); int t; cin>>t; string s; cin>>s; string numbers = "0123456789"; string lower_case = "abcdefghijklmnopqrstuvwxyz"; string upper_case = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"; string special_characters = "!@#$%^&*()-+"; int flag_num=0,flag_upper=0,flag_lower=0,flag_special=0; REP(i,1,s.size()) { if(isdigit(s[i])&& flag_num==0) { flag_num=1; } if(isupper(s[i])&&flag_upper==0) { flag_upper=1; } if(islower(s[i])&&flag_lower==0) { flag_lower=1; } if(flag_special==0) { REP(j,1,special_characters.size()) { if(special_characters[j]==s[i]) { flag_special=1; break; } } } } int count=0; if(flag_lower==0) { count++; } if(flag_upper==0) { count++; } if(flag_special==0) { count++; } if(flag_num==0) { count++; } if(t+count<6) { count+=(6-(t+count)); } cout<