#include #include #include #include #include #define ll long long #define Inf 11111111111ll using namespace std; bool HasD(const string& S) { for(int i=0;i='0' && S[i]<='9') return true; } return false; } bool HasL(const string& S) { for(int i=0;i='a' && S[i]<='z') return true; } return false; } bool HasU(const string& S) { for(int i=0;i='A' && S[i]<='Z') return true; } return false; } bool HasS(const string& S) { string specials = "!@#$%^&*()-+"; for(int i=0;i>L; string S; cin>>S; int ans=0; if (!HasD(S)) ans++; if (!HasL(S)) ans++; if (!HasU(S)) ans++; if (!HasS(S)) ans++; int newL = S.size()+ans; if (newL < 6) ans += 6-newL; cout << ans << endl; }