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