#include #include using namespace std; int minimumNumber(int n, string password) { // Return the minimum number of characters to make the password strong string special_characters = "!@#$%^&*()-+"; int flag[5]={0,0,0,0,0}; int cntr=0; // flag small,big,digit,special,length respectively for(int i=0;i=6) flag[4]=1; } for(int j=0;j<4;j++) { if (flag[j]==0) cntr++; } while(cntr+password.size()<6){ if(password.size()>=6 &&cntr!=0) break; cntr++; } return cntr; } int main() { int n; cin >> n; string password; cin >> password; int answer = minimumNumber(n, password); cout << answer << endl; return 0; }