#include using namespace std; int a,b,c,d,ans; int main() { int n,i; cin >> n; string str; cin>>str; for(i=0;i=48 && str[i]<=57) a=1; else if(str[i]>=65 && str[i]<=90) b=1; else if(str[i]>=97 && str[i]<=122) c=1; else if(str[i]=='!') d=1; else if(str[i]=='@') d=1; else if(str[i]=='#') d=1; else if(str[i]=='$') d=1; else if(str[i]=='%') d=1; else if(str[i]=='^') d=1; else if(str[i]=='&') d=1; else if(str[i]=='*') d=1; else if(str[i]=='(') d=1; else if(str[i]==')') d=1; else if(str[i]=='-') d=1; else if(str[i]=='+') d=1; } if(!a){ n++; ans++; } if(!b){ n++; ans++; } if(!c){ n++; ans++; } if(!d){ n++; ans++; } if(n<6){ ans+=(6-n); } cout<