#include #include #include #include #include using namespace std; typedef long long int ll; bool special(string s,int n) { int i=0; while(s[i]) { if(s[i]=='!'||s[i]=='@'||s[i]=='#'||s[i]=='$'||s[i]=='%'||s[i]=='^'||s[i]=='&'||s[i]=='*'||s[i]=='('||s[i]==')'||s[i]=='-'||s[i]=='+') return true; i++; } return false; } bool small(string s,int n) { int i=0; while(s[i]) { if(s[i]>='a'&&s[i]<='z') return true; i++; } return false; } bool capital(string s,int n) { int i=0; while(s[i]) { if(s[i]>='A'&&s[i]<='Z') return true; i++; } return false; } bool isnum(string s,int n) { int i=0; while(s[i]) { if(s[i]>='0'&&s[i]<='9') return true; i++; } return false; } int main() { /* Enter your code here. Read input from STDIN. Print output to STDOUT */ int n; string s; cin>>n; cin>>s; ll count=0; if(!special(s,n)) { count++; } if(!small(s,n)) { count++; } if(!capital(s,n)) { count++; } if(!isnum(s,n)) { count++; } if(count+n<6) { count+=6-(n+count); } cout<