#include using namespace std; int main(){ ios::sync_with_stdio(false); cin.tie(0); cout.tie(0); int s,x; string str; bool flag,flag1,flag2,flag3; cin>>str; cin>>str; s=str.size(); flag=flag1=flag2=flag3=false; for(int i=0;i='a'&&str[i]<='z') flag=true; else if(str[i]>='A'&&str[i]<='Z') flag1=true; else if(str[i]>='0'&&str[i]<='9') flag2=true; else if(str[i]=='!'||str[i]=='@'||str[i]=='#'||str[i]=='%'||str[i]=='$'||str[i]=='^'||str[i]=='&'||str[i]=='*'||str[i]=='('||str[i]==')'||str[i]=='-'||str[i]=='+') flag3=true; x=0; if(!flag) x++; if(!flag1) x++; if(!flag2) x++; if(!flag3) x++; if((s+x)<6) x+=(6-s-x); cout<