#include #define scanI(n) scanf("%d", &n) #define scanL(n) scanf("%ld", &n) #define scanLL(n) scan("%lld", &n) #define scanII(a, b) scanf("%d %d", &a, &b) #define scanIII(a, b, c) scanf("%d %d %d", &a, &b, &c); #define printI(n) printf("%d", n) #define printII(a,b) printf("%d %d", a, b) #define PRINT(list) for(auto i : list) printf("%d ", i); printf("\n"); #define PRINTARR(ar_, n_) for(int i_=0; i_ #define LL long long #define MOD 1000000007 #define PI 3.142857 using namespace std; void test(){ } int main(){ int n; scanI(n); string s; cin >> s; map mem[126]; int cnt = 0; bool lower=false, upper=false, digit=false, special=false; for(auto c : s){ if(c >= 65 && c <= 90) upper = true; else if(c >= 97 && c <= 122) lower = true; else if(c >= 48 && c <= 57) digit = true; else if((c >= 33 && c <= 45) || c == 64) special = true; } if(!lower) cnt++; if(!upper) cnt ++; if(!digit) cnt++; if(!special) cnt++; //printf("%d %d %s\n", cnt, s.size(), s.c_str()); if((s.size() + cnt) < 6) cnt += 6 - (s.size() + cnt); printI(cnt); return 0; }