#include using namespace std; const int N = 111; string num = "0123456789"; string lower = "abcdefghijklmnopqrstuvwxyz"; string upper = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"; string spec = "!@#$%^&*()-+"; int n, D[256], F[5], res; string s; int main() { ios_base::sync_with_stdio(0); cin.tie(0); cin>>n; cin>>s; for(int i = 0; i < (int)num.size(); i++){ D[num[i]] = 1; } for(int i = 0; i < (int)lower.size(); i++){ D[lower[i]] = 2; } for(int i = 0; i < (int)upper.size(); i++){ D[upper[i]] = 3; } for(int i = 0; i < (int)spec.size(); i++){ D[spec[i]] = 4; } for(int i = 0; i < n; i++){ F[D[s[i]]]++; } for(int i = 1; i <= 4; i++){ if(F[i]==0) res++; } res = max(res,6-n); cout<