/** ~~~ BISMILLAH HIR RAHMANIR RAHIM ~~~ Problem Name: Platform: Algorithm: Author's Name: RC Tushar ---------------------------------------------------- let the light of the Shelley moon die tonight let the sky cover herself with dark shroud, tonight but not the hope that promised to live Just say her, dear, don't sleep tonight die another day, die another night ---------------------------------------------------- "Don't follow others,instead learn from their experience and make your own path" **/ #include #define pi 2*acos(0.0) #define PS system("pause") #define siter(n,T1) for(set::iterator it=n.begin();it!=n.end();it++) #define miter(n,T1,T2) for(map::iterator it=n.begin();it!=n.end();it++) #define meter(n,T1,T2) for(map::iterator it=n.end();it!=n.begin();it--) #define FOR(s,e,inc) for(int i=s;i<=e;i+=inc) #define loop(i,a,b) for(int i=a;i= 1 && i <= Row) && (j >= 1 && j <= Col)) #define ubound(d,val) int (upper_bound (d.begin(), d.end(), val) - d.begin()) #define lbound(d,val) int (lower_bound (d.begin(), d.end(), val) - d.begin()) using namespace std; int dx[]= {1,0,-1,0}; int dy[]= {0,1,0,-1}; //4 Direction int ddx[]= {1,1,0,-1,-1,-1,0,1}; int ddy[]= {0,1,1,1,0,-1,-1,-1}; //8 direction //int dx[]={2,1,-1,-2,-2,-1,1,2};int dy[]={1,2,2,1,-1,-2,-2,-1}; //Knight Direction //int dx[]={2,1,-1,-2,-1,1};int dy[]={0,1,1,0,-1,-1}; //Hexagonal Direction //freopen("in.txt","r",stdin); //freopen("out.txt","w",stdout); typedef vector vi; typedef vector vll; typedef pair pii; typedef pair pll; typedef pair pib; typedef pair pdd; typedef pair pcc; typedef pair pdi; typedef pair< int, pii> ipii; typedef pair< int, string> pis; typedef pair< string,int> psi; //TEMPLATES template inline bool fs(T &x) { int c=getchar(); int sgn=1; while(~c&&c<'0'||c>'9') { if(c=='-')sgn=-1; c=getchar(); } for(x=0; ~c&&'0'<=c&&c<='9'; c=getchar()) x=x*10+c-'0'; x*=sgn; return ~c; } ll sat(ll n,ll pos) { return n=n | (1LL< double dif(T &a,T& b) { double ans=(a.F-b.F)*(a.F-b.F)+(a.S-b.S)*(a.S-b.S); return sqrt(ans); } #define M 100000 #define mod 100000007 #define INT(c) ((int)((c) - '0')) #define rc(c) ((int)((c) - 'A')) #define CHAR(i) ((char)(i + int('0'))) /***************************** Code Starting Point *****************************/ string xx="!@#$%^&*()-+"; int n; bool ck_dig(string str) { for(int i=0; str[i]; i++) if('0'<=str[i]&&str[i]<='9') return false; return true; } bool ck_up(string str) { for(int i=0; str[i]; i++) if(isupper(str[i])) return false; return true; } bool ck_low(string str) { for(int i=0; str[i]; i++) if(islower(str[i])) return false; return true; } bool ck_sp(string str) { for(int i=0; str[i]; i++) for(int j=0; j>n>>str; int cnt=0; cnt+=ck_dig(str); cnt+=ck_up(str); cnt+=ck_low(str); cnt+=ck_sp(str); if(n>=6) cout<