#include using namespace std; ifstream in("input.txt"); ofstream out("output.txt"); set numbers ={'0', '1', '2', '3', '4', '5', '6', '7', '8', '9'}; set lower_case = {'a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z'}; set special_characters = {'!','@','#','$','%','^','&','*','(',')','-','+'}; set upper_case; int N; int main(){ for(char a='A'; a<='Z'; a++){ upper_case.insert(a); } cin >> N; int cont=0; bool n=false, l=false, s=false, u=false; for(int i=0; i> c; if(numbers.find(c)!=numbers.end()){ n=true; } else if(lower_case.find(c)!=lower_case.end()){ l=true; } else if(special_characters.find(c)!=special_characters.end()){ s=true; } else if(upper_case.find(c)!=upper_case.end()){ u=true; } cont++; } int sol=0; if(!n){ sol++; } if(!u) sol++; if(!s) sol++; if(!l) sol++; if(N+sol<6){ sol=6-N; } cout << sol; }