#include<iostream>
using namespace std;
int main() {
int n;
cin>>n;
getchar();
for(int i=0; i<n; i++) {
string pas;
getline(cin,pas);
if(pas.length()<6){ //长度不合法
cout<<"Your password is tai duan le."<<endl;
continue;
}
int ying=0,shu=0,dian=0,others=0;
for(int j=0;j<pas.length();j++) {
if(isalpha(pas[j])) ying++;
else if(isdigit(pas[j])) shu++;
else if(pas[j]=='.') dian++;
else others++;
}
if(others) cout<<"Your password is tai luan le."<<endl;
else if(ying>0&&shu==0) cout<<"Your password needs shu zi."<<endl;
else if(ying==0&&shu>0) cout<<"Your password needs zi mu."<<endl;
else cout<<"Your password is wan mei."<<endl;
}
return 0;
}
简单题,注意index i 和 j 不要弄混