////////////////////////////////////////// /* ************************************ */ /* @@@@@ X X @@@@@ */ /* @ @ X X @ @ */ /* @ @@@@ @ X X @ @@@@ @ */ /* @ @ @ @ X @ @ @ @ */ /* @ @@@ @@ X X @ @@@ @@ */ /* @ X X @ */ /* @@@@@ X X @@@@@ */ /* ************************************ */ ////////////////////////////////////////// //Tayyorgarchilik #include #include using namespace std; typedef unsigned long long ull; typedef long long ll; #define AXA true #define ishkal_tugadi 0 #define ishkal_boshlandi main #define PB push_back #define MP make_pair #define ALL(x) (x).begin(),(x).end() #define SZ(x) (int((x.size()))) #define pii pair #define ft first #define sd second #define vi vector #define si set #define db(x) cerr<<#x<<" = "<=a; i--) #define standart 1 ll gcd(ll a, ll b){ return b?gcd(b,a%b):a; } ll lcm(ll a, ll b){ return a*(b/gcd(a,b)); } string sum(string a, string b){ string ans=""; R(i,0,max(SZ(a),SZ(b)))ans+='0'; reverse(ALL(a)); reverse(ALL(b)); while (SZ(a)>SZ(b))b+='0'; while (SZ(a)0){ ans[i+j]=char((temp%10)+'0'); temp/=10; j++; } } reverse (ALL(ans)); while (ans[0]=='0' && SZ(ans)>1)ans.erase(0,1); return ans; } bool prime(ll x){ if (x==0)return 1; R(i,2,sqrt(x)){ if (x%i==0)return 0; } return 1; } bool palindrom(string s){ string ss=""; R(i,0,s.size()-1)ss=s[i]+ss; return ss==s; } bool a,b,c,d; int ishkal_boshlandi(){ ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0); if(!standart){ freopen("INPUT.TXT", "r", stdin); freopen("OUTPUT.TXT", "w", stdout); } string numbers = "0123456789"; string lower_case = "abcdefghijklmnopqrstuvwxyz"; string upper_case = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"; string special_characters = "!@#$%^&*()-+"; int z; cin>>z; string s; cin>>s; int n=4; R(i,0,SZ(s)-1){ if (!a && numbers.find(s[i])!=-1){ a=true; n--; } if (!b && lower_case.find(s[i])!=-1){ b=true; n--; } if (!c && upper_case.find(s[i])!=-1){ c=true; n--; } if (!d && special_characters.find(s[i])!=-1){ d=true; n--; } } if ((SZ(s)+n)<6)n+=(6-(SZ(s)+n)); cout<