#include #define pb push_back #define x first #define y second #define MOD 10007 using namespace std; typedef long long ll; typedef pair< int , int > PII; const int dirx[] = {0,1,0,-1}; const int diry[] = {1,0,-1,0}; int n, a[100100]; string s = "!@#$%^&*()-+"; string c; bool u1, u2, u3, u4; int main(){ ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0); cin >> n; cin >> c; for (auto it : c){ u1 |= (it >= '0' && it <= '9'); u2 |= (it >= 'a' && it <= 'z'); u3 |= (it >= 'A' && it <= 'Z'); for (auto it2 : s) u4 |= (it == it2); } int rs = !u1 + !u2 + !u3 + !u4; n += rs; if (n < 6) rs += 6 - n; cout << rs; }