#include using namespace std; int main() { int n; scanf("%d",&n); string str; cin>>str; string cmp="1111"; string temp="0000"; for(int i=0;i=65&&str[i]<=90) temp[0]='1'; else if(str[i]>=48&&str[i]<=57) temp[1]='1'; else if(str[i]>=97&&str[i]<=122) temp[2]='1'; else temp[3]='1'; } //cout<=6) cout<<'0'; else cout<<6-str.size(); } else{ /*cout<<"gfd";*/ int cnt=0; for(int i=0;i<4;i++){ if(temp[i]!='1') cnt++; } //cout<=6) cout<