#include #define ll long long using namespace std; map < char, bool > mp; int main () { // freopen ("split.in", "r", stdin); // freopen ("split.out", "w", stdout); ios::sync_with_stdio(false); int n; cin >> n; int sm=0; int bg=0; int dig=0; int spec=0; string s="!@#$%^&*()-+"; for (int k=0; k> s1; for (int k=0; k='a' && s1[k]<='z') sm=1; if (s1[k]>='A' && s1[k]<='Z') bg=1; if (s1[k]>='0' && s1[k]<='9') dig=1; if (mp[s1[k]]) spec=1; } int ad=0; if (!sm) ad++; if (!bg) ad++; if (!dig) ad++; if (!spec) ad++; if (n+ad<6) cout << 6-n; else cout << ad; return 0; }