semeru/Code-Code-CloneDetection-POJ104 huggingface dataset:
void main()
{
	int panduan(char c[][21],int n,int l);
    int n,i,len[30];
	char str[30][21];
	scanf("%d",&n);
	for(i=0;i<=n-1;i++)
		scanf("%s",str[i]);
	for(i=0;i<=n-1;i++)
		len[i]=strlen(str[i]);
	for(i=0;i<=n-1;i++)
	{
		if(panduan(str,i,len[i])==1)
			printf("yes\n");
		else
			printf("no\n");
	}
}
int panduan(char c[][21],int n,int l)
{
	int i,t=1;
	for(i=0;i<=l-1;i++)
	{
		if((c[n][i]>='0'&&c[n][i]<='9')||(c[n][i]>='a'&&c[n][i]<='z')||(c[n][i]>='A'&&c[n][i]<='Z')||c[n][i]=='_')
			t*=1;
		else
			t*=0;
	}
	if(c[n][0]>='0'&&c[n][0]<='9')
		t*=0;
	return(t);
}
int main(){
int n,i,j,a,l;
int b=1;
scanf("%d",&n);
char c[21];
for(i=0;i<n;i++){
	b=1;
	scanf("%s",c);
	l=strlen(c);
	for(j=0;j<l;j++){
		if((c[j]=='_')||(c[j]>='A'&&c[j]<='Z')||(c[j]>='a'&&c[j]<='z')||(c[j]>='0'&&c[j]<='9'&&j>0)){
			a=1;
		}
		else{
			b=0;
		}
	}
	if(b==1){
		printf("yes\n");
	}
	else{
		printf("no\n");
	}
}



	return 0;
}
int main()
{
	int n,i,j,b;
	char a[20];
	scanf("%d\n",&n);
	for(i=0;i<n;i++)
	{
		b=1;
		gets(a);
		if(a[0]>='0'&&a[0]<='9') b=0;
		for(j=0;a[j]!='\0';j++)
		{
			if((a[j]<'0'||(a[j]>'9'&&a[j]<'A')||a[j]>'z'||(a[j]>'Z'&&a[j]<'a'))&&(a[j]!='_')){b=0;break;}
		}
		if(b==1)printf("yes\n");
		else if(b==0)printf("no\n");
	}
	return 0;
}
int main()
{
	int n,i,j;
	
	scanf("%d\n",&n);
	for (i=1;i<=n;i++)
	{
		char s[21];
		gets(s);
		if (1^((s[0]>='a'&&s[0]<='z')||(s[0]>='A'&&s[0]<='Z')||(s[0]=='_'))) 
		{
			printf("no\n");continue;
		}
		for (j=1;j<strlen(s);j++)
		{
			if (1^((s[j]>='a'&&s[j]<='z')||(s[j]>='A'&&s[j]<='Z')||(s[j]>='0'&&s[j]<='9')||(s[j]=='_'))) break;
		}
		if (j<strlen(s)) printf("no\n");
		  else printf("yes\n");
	}
}
int main()
{
    int n,i,k,m;
    char a[30];
    gets(a);
    n=atoi(a);
    char zf[100000][21];
    for(i=0;i<n;i++){
        gets(zf[i]);
    }
    for(i=0;i<n;i++){
        m=1;
        if((zf[i][0]>='a'&&zf[i][0]<='z')||(zf[i][0]>='A'&&zf[i][0]<='Z')||zf[i][0]=='_'){
            m=1;
        }else{
            m=0;
        }
        for(k=1;zf[i][k]!='\0';k++){
            if((zf[i][k]>='A'&&zf[i][k]<='Z')||(zf[i][k]>='a'&&zf[i][k]<='z')||(zf[i][k]>='0'&&zf[i][k]<='9')||zf[i][k]=='_'){
                1;
            }else{
                m=0;
            }
        }
        if(m==1){
            printf("yes\n");
        }else if(m==0){
            printf("no\n");
        }
    }

    return 0;
}
int main(){
int n,t;
char a[50];

scanf("%d",&n);
for(int i=0;i<n;i++){
	scanf("%s",a);
	t=1;
	if((a[0]<'A'||a[0]>'Z')&&(a[0]<'a'||a[0]>'z')&&a[0]!='_'){
		t=0;
	}
	for(int j=1;j<strlen(a);j++){
		if((a[j]<'A'||a[j]>'Z')&&(a[j]<'a'||a[j]>'z')&&a[j]!='_'&&(a[j]<'0'||a[j]>'9')){
			t=0;
			break;
		}
	}
	if(t==0){
		printf("no\n");
	}
	else if(t==1){
		printf("yes\n");
	}
}






return 0;
}
int main(){
	int n,i,j,l=0,s;
	char a[30];
	int b[100];
	scanf("%d",&n);
	for (i=0;i<n;i++){
		scanf("%s",a);
		l=strlen(a);
		if ((a[0]=='_')||(a[0]>='a'&&a[0]<='z')||(a[0]>='A'&&a[0]<='Z')){
			s=0;
			for (j=1;j<l;j++){
				if ((a[j]=='_')||(a[j]>='0'&&a[j]<='9')||(a[j]>='a'&&a[j]<='z')||(a[j]>='A'&&a[j]<='Z')){
					s=s+0;
				}
				else{
					s=s+1;
				}
			}
		}
		else {
			s=1;
		}
		b[i]=s;
	}
	for (i=0;i<n;i++){
		if (b[i]==0){
			printf("yes\n");
		}
		else {
			printf("no\n");
		}
	}
	return 0;
}
int main()
{
	char a[20];
	int i, j, n, t, l;
	scanf ("%d", &n);
	for (j=0; j<n; j++)
	{
		t = 0;
		scanf ("%s", a);
		l = strlen(a);
		for (i=0; i<l; i++)
		{
			if (a[0]<'A')
				t++;
			if (a[i]<'0')
				t++;
		    if (a[i]>'9' && a[i]<'A')
			    t++;
			if (a[i]>'Z' && a[i]<'_')
			    t++;
			if (a[i]>'_' && a[i]<'a')
			    t++;
			if (a[i]>'z')
			    t++;
		}
		if (t == 0)
			printf ("yes\n");
		else
			printf("no\n");
	}
	return 0;
}
int main(){
	int n,i,j,a,m=0;
	char zfc[LEN][LEN];
	scanf("%d",&n);
	for(i=0;i<n;i++){
		scanf("%s",&zfc[i]);
	}
	for(i=0;i<n;i++){
		a=strlen(zfc[i]);
		for(j=0;j<a;j++){
			if(j==0){
				if(zfc[i][j]<65||(zfc[i][j]>90&&zfc[i][j]<95)||zfc[i][j]==96||zfc[i][j]>122){
				break;
	
				}
			}else{
				if(zfc[i][j]<48||(zfc[i][j]>57&&zfc[i][j]<65)||(zfc[i][j]>90&&zfc[i][j]<95)||zfc[i][j]==96||zfc[i][j]>122){
				break;
	
				}else{
					m++;
		
				}
			}	

		}
		if(j==a){
			printf("yes\n");
		}else{
			printf("no\n");
		}

	}


	return 0;
}
int main()
{
    int n,i,k;
    scanf("%d",&n);
    char zfc[MAX+1];
    getchar();
    for(i=0;i<n;i++)
    {
    gets(zfc);
        for(k=0;zfc[k];k++)
        {
        if(!((zfc[k]=='_')||(zfc[k]>='A'&&zfc[k]<='Z')||(zfc[k]>='0'&&zfc[k]<='9'&&k>0)||(zfc[k]<='z'&&zfc[k]>='a')))
        break;
        }
         if(zfc[k]||zfc[k]>='0'&&zfc[0]<='9')
         printf("no\n");
         else
         printf("yes\n");
     }
     return 0;
}
int main()
{
	int x,b,c,n,i,j,k;
	char a[1000][30];
	char w[100];
	gets(w);
	n=atoi(w);
	for(i=0;i<n;i++)
	{
		gets(a[i]);
	}
	for(i=0;i<n;i++)
	{
		x=1;
		if((a[i][0]>='a'&&a[i][0]<='z')||(a[i][0]>='A'&&a[i][0]<='Z')||a[i][0]=='_')
		{
			1;
		}
		else
		{
			x=0;
		}
			for(j=0;a[i][j]!='\0';j++)
			{
				if((a[i][j]>='a'&&a[i][j]<='z')||(a[i][j]>='A'&&a[i][j]<='Z')||a[i][j]=='_'||(a[i][j]>='0'&&a[i][j]<='9'))
				{
					1;
				}
				else
				{
					x=0;
				}
			}
			if(x==1)
				printf("yes\n");
			else
					printf("no\n");
		}

	return 0;
}
int main(){
int n,i,k,j;
char bsf[100][21];
 k=1;
 scanf("%d",&n);
 for(i=0;i<n;i++){
  scanf("%s",&bsf[i]);
 }
 for(i=0;i<n;i++){
  if(bsf[i][0]=='_'||(bsf[i][0]>='A'&&bsf[i][0]<='Z')||(bsf[i][0]>='a'&&bsf[i][0]<='z')){k*=1;}
  else{k*=0;}
   for(j=1;j<strlen(bsf[i]);j++){
    if(bsf[i][j]=='_'||(bsf[i][j]>='A'&&bsf[i][j]<='Z')||(bsf[i][j]>='a'&&bsf[i][j]<='z')||(bsf[i][j]>='0'&&bsf[i][j]<='9'))
	{k*=1;}
	else{k*=0;}
  }
  if(k){printf("yes\n");}
   else{printf("no\n");}
   k=1;
 }
 return 0;
}
int main()
{
    char str[21];
    int n;
    cin>>n;
    for (;n>0;n--)
    {
        cin>>str;
        int flag=1;
        if(str[0]=='_'||str[0]>='a'&&str[0]<='z'||str[0]>='A'&&str[0]<='Z')
        flag=1;
        else
        flag=0;
        for(int i=1;str[i]!='\0';i++)
        {
                if(str[i]>='0'&&str[i]<='9'||str[i]>='a'&&str[i]<='z'||str[i]>='A'&&str[i]<='Z'||str[i]=='_')
                continue;
                else
                {
                   flag=0;
                   break;
                }
        }
        if(flag==0)
        cout<<"no"<<endl;
        else
        cout<<"yes" <<endl;
    }       
	return 0;
}
int main()
{ 
    int i,l,n;
    scanf("%d",&n);
    char c[2000],*p;
    for(i=0;i<n;i++){
        scanf("%s",c);
        l=strlen(c);
        p=c;
        if((*p>64&&*p<91)||(*p==95)||(*p>96&&*p<123)){}
        else {printf("no\n");continue;}
        for(p=c+1;p<c+l;p++){
            if((*p>64&&*p<91)||(*p==95)||(*p>96&&*p<123)||(*p>47&&*p<58))
                       {if(p==c+l-1){printf("yes\n");}  }
            else {printf("no\n");break;}
         }
    }                         
	return 0;
}
int main()
{
	char A[2013];
	int N;
	scanf("%d\n",&N);
	while (N --)
	{
		gets(A);
		int L = strlen(A);
		int K = 0;
		for (int I = 0; I < L; I ++)
		{
			int Flag = 0;
			if ('A' <= A[I] && A[I] <= 'Z') Flag ++;
				else if ('a' <= A[I] && A[I] <= 'z') Flag ++;
					else if ('0' <= A[I] && A[I] <= '9') Flag ++;
						else if (A[I] == '_') Flag ++;
			if (!Flag) K = 1;
		}
		if (('A' <= A[0] && A[0] <= 'Z') || ('a' <= A[0] && A[0] <= 'z') || (A[0] == '_')); else K = 1;
		if (!K) cout << "yes" << endl;
			else cout << "no" << endl;
	}
}
void main()
{
	int n,l,i,j;
	char a[100][100];
	scanf("%d",&n);
	for(i=0;i<n;i++)
	{
		int t=0;
		scanf("%s",a[i]);
		char b[32][10]={"auto", "break", "case", "char", "const", "continue", "default","do", "double", "else", "enum",
		"extern", "float", "for", "goto","if", "int", "long", "register", "return", "short", "signed", "sizeof",
		"static", "struct", "switch", "typedef", "union", "unsigned","void", "volatile", "while"};
		for(j=0;j<32;j++)
			if(strcmp(b[j],a[i])==0)
			{	
				t=-1;
				break;
			}
			if(t==-1)
			{
				printf("no\n");
				continue;
			}
			if((a[i][0]>='A'&& a[i][0]<='Z') || (a[i][0]>='a' && a[i][0]<='z') || a[i][0]=='_')
				t=0;
			else
			{
				t=-1;
				printf("no\n");
				continue;
			}
			l=strlen(a[i]);
			j=1;
			while(j<l)
			{
				if ((a[i][j]>='A' && a[i][j]<='Z')||(a[i][j]>='a' && a[i][j]<='z')||(a[i][j]>='0' && a[i][j]<='9')|| a[i][j]=='_')
					t=0;
					else
				{
					t=-1;
					break;
				}
					j++;
			}
			if(t==-1)
				printf("no\n");
			if(t==0)
				printf("yes\n");
	}
}
int main(int argc, char* argv[])
{
char s[1000][20];
int i,j;
int len;
int k=0;
int n;
scanf("%d",&n);
for(i=0;i<n;i++){
  scanf("%s",s[i]);
}
for(i=0;i<n;i++){   
	k=0;
	len=strlen(s[i]);
	if((s[i][0]=='_')||((s[i][0]>='A')&&(s[i][0]<='Z'))||((s[i][0]>='a')&&(s[i][0]<='z'))){
		for(j=1;j<len;j++){
			if((s[i][j]=='_')||((s[i][j]>='A')&&(s[i][j]<='Z'))||((s[i][j]>='a')&&(s[i][j]<='z'))||((s[i][j]>='0')&&(s[i][j]<='9'))){k++;}
		}
		if(k==(len-1))
		{
			printf("yes\n");
		}else{
			printf("no\n");
		}
	}else{
		printf("no\n");
	}
}
return 0;
}
int main()
{
char dz[N];
int n,l,t=0,i=0;
scanf("%d",&n);
for(int j=0;j<n;j++)
{
scanf("%s",&dz);
t=0;

 if((dz[0]>='a'&&dz[0]<='z')||(dz[0]>='A'&&dz[0]<='Z')||(dz[0]=='_'))
{

l=strlen(dz);

for(i=1;i<l;i++)
{
if((dz[i]>='a'&&dz[i]<='z')||(dz[i]>='A'&&dz[i]<='Z')||(dz[i]>='0'&&dz[i]<='9')||(dz[i]=='_')){continue;}
else{t=t+1;}
}
if(t==0){
    printf("yes\n");
    
}
else{printf("no\n");}
}
else{printf("no\n");}}
return 0;
}
int main()
{
	int i,k,n,sum,sz[1000];
	scanf("%d",&n);
	char s[1000][20];
	for(i=0;i<=n-1;i++)
		scanf("%s\n",&s[i]);
	for(i=0;i<n;i++)
	{
		sum=0;
		sz[i]=strlen(s[i]);
		for(k=0;k<sz[i];k++)
		{
			if((s[i][k]>='a'&&s[i][k]<='z')||(s[i][k]>='A'&&s[i][k]<='Z')||(s[i][k]>='0'&&s[i][k]<='9')||(s[i][k]=='_'))
				sum++;
		}
		if(sum==sz[i]&&((s[i][0]>='a'&&s[i][0]<='z')||(s[i][0]>='A'&&s[i][0]<='Z')||(s[i][0]=='_')))
			printf("yes\n");
		else
			printf("no\n");
	}
	return 0;
}
void main()
{
	int n,i,x,k;
	char s[100][100],*p;
	scanf("%d",&n);
	for(i=0;i<n;i++)
		scanf("%s",&s[i]);
	for(i=0;i<n;i++)
	{
		k=0;
		x=strlen(s[i]);
		p=s[i];
		if((*p!='_')&&(*p<'a'||*p>'z')&&(*p<'A'||*p>'Z'))
		{	printf("no\n");k=1;}
		if(k==0)
		for(p=s[i]+1;p<s[i]+x;p++)
		{
			if(((*p!='_')&&(*p<'a'||*p>'z'))&&(*p<'0'||*p>'9')&&(*p<'A'||*p>'Z'))
			{
				printf("no\n");k=1;break;
			}
		}
		if(k==0)	printf("yes\n");
	}
}
int main ()
{
    int n,l,i,j,b;
    char a[100][20];
    scanf("%d",&n);
    for(i=0;i<n;i++)
    scanf("%s\n",a[i]);
    for(i=0;i<n;i++)
    {
        b=0;
        l=strlen(a[i]);
        j=0;
        if((a[i][j]>='A'&&a[i][j]<='Z')||(a[i][j]>='a'&&a[i][j]<='z')||(a[i][j]=='_')){b++;}
        for(j=1;a[i][j]!='\0';j++)
        {
            if((a[i][j]>='A'&&a[i][j]<='Z')||(a[i][j]>='a'&&a[i][j]<='z')||(a[i][j]>='0'&&a[i][j]<='9')||(a[i][j]=='_'))
            {b++;}
        }
        if(b==l){printf("yes\n");}
        else {printf("no\n");}
    }
    return 0;
}
int main(){
    char asz[300][300];
	int len[300],n=0,i,bsz[300],j,fsz[300];
	scanf("%d",&n);
	for(i=0;i<n;i++){
		scanf("%s",asz[i]);
		len[i]=strlen(asz[i]);
	}
	for(i=0;i<n;i++){
		fsz[i]=1;
		for(j=0;j<len[i];j++){
			if(!((asz[i][j]=='_')||
				(asz[i][j]>='A'&&asz[i][j]<='Z')||
				(asz[i][j]>='a'&&asz[i][j]<='z')||
				(asz[i][j]>='0'&&asz[i][j]<='9'&&j>0))){
					fsz[i]=0;
				    break;
			}

			
		
		}
	}
	for(i=0;i<n;i++){
		if(fsz[i]==0){
			printf("no\n");
		}
		else{
			printf("yes\n");
		}

	}	
}
int main()
{
	int n,i,j,check;
	char a[21];
	check=1;
	scanf("%d",&n);
	for(i=1;i<=n;i++)
	{
		scanf("%s",a);
		for(j=0;j<=strlen(a)-1;j++)
		{if(!((a[j]>='0'&&a[j]<='9')||(a[j]>='A'&&a[j]<='Z')||(a[j]>='a'&&a[j]<='z')||a[j]=='_')||(j==0&&a[j]>='0'&&a[j]<='9'))
			{check=0;
 			break;
			}
		}
			if(check==0)
			{	printf("no");
			printf("\n");
			}
			else
			{	printf("yes");
			printf("\n");
			}
			check=1;
			for(j=0;j<=strlen(a)-1;j++)
				a[i]=0;
	}
			
	return 0;
}
int main()
{
	int n;
	scanf("%d",&n);
	char zfc[50][20];
	int i,j;
	for(i=0;i<n;i++){
		scanf("%s",zfc[i]);
		int k;
		int flag=0;
		k=strlen(zfc[i]);
		if(zfc[i][0]==95 || (zfc[i][0]>=65 && zfc[i][0]<=90) || (zfc[i][0]>=97 && zfc[i][0]<=122)){
			flag=1;
			for(j=1;j<k;j++){
				if(zfc[i][j]==95 || (zfc[i][j]>=65 && zfc[i][j]<=90) || (zfc[i][j]>=97 && zfc[i][j]<=122) || zfc[i][j]=='0' || zfc[i][j]=='1' || zfc[i][j]=='2' || zfc[i][j]=='3' || zfc[i][j]=='4' || zfc[i][j]=='5' || zfc[i][j]=='6' || zfc[i][j]=='7' || zfc[i][j]=='8' || zfc[i][j]=='9'){
					flag++;
				}
			}
			if(flag==k){
				printf("yes\n");
			}else{
				printf("no\n");
			}
		}else{
			printf("no\n");
		}
	}
	return 0;
}
int main(int argc, char* argv[])
{
	int n,i,m,j,add=0;
	char sz[21];
	scanf("%d",&n);
	for(i=0;i<n;i++){
		scanf("%s",sz);
		m=strlen(sz);
		for(j=0;j<m;j++){
			if((sz[j]>='A'&&sz[j]<='Z'||sz[j]>='a'&&sz[j]<='z'||sz[j]=='_'||sz[j]>='0'&&sz[j]<='9')){
				if(j==0&&(sz[j]<'0'||sz[j]>'9'))
					add++;
				if(j>0)
					add++;
			}
		}
		if(add==m)
			printf("yes\n\n");
		else
			printf("no\n\n");
		add=0;
	}
	return 0;
}
void main()
{
	int n,l,i,j;
	char a[100][100];
	scanf("%d",&n);
	for(i=0;i<n;i++)
	{
		int t=0;
		scanf("%s",a[i]);
		for(j=0;j<32;j++)
			if(t==-1)
			{
				printf("no\n");
				continue;
			}
			if((a[i][0]>='A'&& a[i][0]<='Z') || (a[i][0]>='a' && a[i][0]<='z') || a[i][0]=='_')
				t=0;
			else
			{
				t=-1;
				printf("no\n");
				continue;
			}
			l=strlen(a[i]);
			j=1;
			while(j<l)
			{
				if ((a[i][j]>='A' && a[i][j]<='Z')||(a[i][j]>='a' && a[i][j]<='z')||(a[i][j]>='0' && a[i][j]<='9')|| a[i][j]=='_')
					t=0;
					else
				{
					t=-1;
					break;
				}
					j++;
			}
			if(t==-1)
				printf("no\n");
			if(t==0)
				printf("yes\n");
	}
}
int main(){
    char a[100];
    int i,j,k,l,n,m[100],o,p;
    scanf("%d",&n);
    for(j=0;j<n;j++){
    scanf("%s",a);
    p=strlen(a);
    o=0;
    for(i=0;i<p;i++)
    if(((a[i]<=57&&a[i]>=48)||(a[i]<=90&&a[i]>=65)||(a[i]<=122&&a[i]>=97)||(a[i]==95))&&(a[0]>57||a[0]<48));
    else
    o=1;
    
    m[j]=o;
    }
    
    for(j=0;j<n;j++)
    if(m[j]==1)
    printf("no\n");
    else
    printf("yes\n");
    return 0;
}
int main()
{
	char s[100][20];
	int n, i, j;
	scanf("%d", &n);
	for(i=0; i<100; i++)
	{
		for(j=0; j<20; j++)
			s[i][j]=0;
	}
	for(i=0; i<n; i++)
		scanf("%s", s[i]);
	for(i=0; i<n; i++)
	{
		char *p=s[i];
		for(;*p!=0; p++)
		{
			if(s[i][0]>=48 && s[i][0]<=57)
				break;
			if(!((*p>=48 && *p<=57) || (*p>=65 && *p<=90) || (*p>=97 && *p<=122) || *p=='_'))
				break;
		}
		if(*p!=0)
			printf("no\n");
		else if(*p==0)
			printf("yes\n");
	}
	return 0;
}
void fun(char s[][31],int n);
int i,j;
void main()
{
	int n;
	scanf("%d",&n);
	char s[100][31];
	for(i=0;i<n;i++)
		scanf("%s",s[i]);
	fun(s,n);
}
void fun(char s[][31],int n)
{
	int l,t;
	for(i=0;i<n;i++)
	{
		t=1;
		l=strlen(s[i]);
		for(j=0;j<l;j++)
			if((s[i][j]>='0'&&s[i][j]<='9')||(s[i][j]>='a'&&s[i][j]<='z')||(s[i][j]>='A'&&s[i][j]<='Z')||(s[i][j]=='_'))
				t*=1;
			else
			{
				t*=0;break;
			}
		if(t==0||(s[i][0]>='0'&&s[i][0]<='9'))
			printf("no\n");
		else
			printf("yes\n");
	}
}
int main()
{
    int i, j, n;      
    scanf("%d", &n);         
    for (i = 0; i < n; i++) 
	{   
        char s[1000]; 
        scanf("%s\n", s);
        int l=strlen(s);
        s[l]='\0';
        int flag=1;
        for (int j=0;j<l;j++)
        {if (!(  (s[j] == '_') 
                 ||(s[j] >= 'A' && s[j] <= 'Z') 
                 ||(s[j] >= 'a' && s[j] <= 'z')
                 ||(s[j] >= '0' && s[j] <= '9' && j > 0)
               ))
        	{flag=0;break;}
       	}
        if (flag==1){printf("yes\n");}
        else if(flag==0){printf("no\n");}
 }
    	return 0;
}
int main()
{
	char a[20];
	int n;
	cin>>n;
	int count=0;
	for (int i=1;i<=n;i++)
	{
		cin>>a;
		int j;
		if (a[0]!='_' && (a[0]<65 || a[0]>122 || (a[0]>90 && a[0]<97) ) )  //:????????????????
		{
			j=0;
			goto stop1;
		}
		for (j=1;a[j]!='\0';j++)
		{
			if ( a[j]!='_' && (a[j]<48 || (a[j]>57&&a[j]<65) || (a[j]>90&&a[j]<97) || a[j]>122) )  //:?????????????????
			{
				break;
			}
		}
stop1:	if (j==strlen(a))
		{
			cout<<"yes"<<endl;
			count++;
		}
		else 
		{
			cout<<"no"<<endl;
			count++;
		}
		if (count==n)
			return 0;
	}
	return 0;
}
int main(){
    int m,i,j;
    scanf("%d",&m);
    char ba[m];
    for(j=0;j<m;j++){
    scanf("%s",ba);
    for(i=0;ba[i]!='\0';i++){
        if(i==0){
            if(!((ba[i]>='a'&&ba[i]<='z')||(ba[i]>='A'&&ba[i]<='Z')||ba[i]=='_')){printf("no\n");
                  break;
          }}
        if(i!=0){
            if(!((ba[i]>='a'&&ba[i]<='z')||(ba[i]>='A'&&ba[i]<='Z')||(ba[i]>='0'&&ba[i]<='9')||ba[i]=='_')){
                printf("no\n");
                break; }
        }
        if(ba[i+1]=='\0'){printf("yes\n");}
    }   
    }
    return 0;
}
int main()
{
	int n,i,j,m;
	char s[1000][21];
	scanf("%d",&n);
	for(i=0;i<n;i++)
		scanf("%s",s[i]);
	for(i=0;i<n;i++)
	{
		if((s[i][0]>='0')&&(s[i][0]<='9'))
				printf("no\n");
		else
		{
			for(j=0;s[i][j]!='\0';j++)
			{
				m=0;
				if((s[i][j]>='A' && s[i][j]<='Z')||(s[i][j]>='a' && s[i][j]<='z')||s[i][j]=='_' ||((s[i][j]>='0')&&(s[i][j]<='9')))
					continue;
				else 
				{
					printf("no\n");
					m=1;
					break;
				}
				
				
			}
			if(m==1)
				continue;
			printf("yes\n");

		}
	}
	return 0;
}
int main()
{
	int num;
	char a[22];
	cin >> num;
	for(int i = 0; i < num; i ++)
	{
		cin >> a;
		//cout << a << " ";
		int n;
		n = strlen(a);
		//cout << n << " ";
		int j;
		for(j = 0; j < n; j ++)
		{
			if( a[0] >= '0' && a[0] <= '9' )
			{
				cout << "no" << endl;
				break;
			}
			if( a[j] >= 'a' && a[j] <= 'z' || a[j] >= 'A' && a[j] <= 'Z' || a[j] >= '0' && a[j] <= '9' || a[j] == '_')
				continue;
			else
			{
				cout << "no" << endl;
				break;
			}
		}
		//cout << "j =" <<j <<"";
		if ( j == n  )
			cout << "yes" << endl;
	}
	return 0;

}
void main()
{
	int n,l,i,j,k;
	char a[30];

	scanf("%d",&n);
	for(i=0;i<n+1;i++)
	{
		k=0;
		gets(a);
        l=strlen(a);
		for(j=1;j<l;j++)
		{
			if((a[0]=='_'||(a[0]>=65&&a[0]<=90)||(a[0]>=97&&a[0]<=122))&&((a[j]>=48&&a[j]<=57)||(a[j]>=65&&a[j]<=90)||(a[j]>=97&&a[j]<=122)||a[j]=='_'))
			k=k+1;
		}
		if(k==l-1) printf("yes\n");
		else if(k<l-1) printf("no\n");
	}
}
int main()
{
	int panduan(char *s,int len);
	char shuru[30],*s;
	int i,n,len;
	gets(shuru);
	n=atoi(shuru);
	for(i=0;i<n;i++){
		gets(shuru);
		len=strlen(shuru);
		s=shuru;
		if(panduan(s,len))
			printf("yes\n");
		else
			printf("no\n");
	}
	return 0;
}
int panduan(char *s,int len)
{
	int i;
	for(i=0;i<len;i++){
		if(*s!='_'&&(*s<'a'||*s>'z')&&(*s<'A'||*s>'Z'))
			return 0;
		if(*(s+i)!='_'&&(*(s+i)<'a'||*(s+i)>'z')&&(*(s+i)<'A'||*(s+i)>'Z')&&(*(s+i)>'9'||*(s+i)<'0'))
			return 0;
	}
	return 1;
}
int main(){
    char a[1000][21];
    int b,i,k;
    scanf("%d",&b);
    for(i=0;i<b;i++){

            scanf("%s",&a[i]);

    }
    for(i=0;i<b;i++){
        if(a[i][0]=='_'||(a[i][0]>='a'&&a[i][0]<='z')||(a[i][0]>='A'&&a[i][0]<='Z')){
            for(k=1;a[i][k]!='\0';k++){
                if(a[i][k]=='_'||(a[i][k]>='a'&&a[i][k]<='z')||(a[i][k]>='A'&&a[i][k]<='Z')||(a[i][k]>='0'&&a[i][k]<='9'))
                    continue;
                else
                    break;
            }
            if(a[i][k]!='\0')
                printf("no\n");
            else
                printf("yes\n");
        }
        else
            printf("no\n");
    }
return 0;
}
int main(){
	int n,i,j,judge=0;
	char zfc[21];
	scanf("%d",&n);

	for(i=0;i<n;i++){
		if(i==0){
			getchar();
		}
		gets(zfc);
		for(j=1;j<strlen(zfc);j++){
			if((zfc[0]>='a'&&zfc[0]<='z')||(zfc[0]>='A'&&zfc[0]<='Z')||zfc[0]=='_'){
				judge=1;
				if((zfc[j]>='a'&&zfc[j]<='z')||(zfc[j]>='A'&&zfc[j]<='Z')||zfc[j]=='_'||(zfc[j]>='0'&&zfc[j]<='9')){
					judge=1;
				}else{
					judge=0;
					break;
				}
			}else{
				judge=0;
				break;	
			}
		}

		if(judge==0){
			printf("no\n");
		}else{
			printf("yes\n");
		}
	}
	return 0;
}
int main (){
    int n,k,z;
    scanf("%d",&n);
    for(int i=0;i<n;i++){
        k=0;
        char sz[21];
        scanf("%s",sz);
        z=strlen(sz);
        if((sz[0]<='z'&&sz[0]>='a')||(sz[0]<='Z'&&sz[0]>='A')||(sz[0]=='_')){
            k++;
            }
      else{k-=100;}
        for(int m=1;m<z;m++){
        if((sz[m]<='z'&&sz[m]>='a')||(sz[m]<='Z'&&sz[m]>='A')||(sz[m]>='0'&&sz[m]<='9')||(sz[m]=='_')){
            k++;
            }
      else{k-=100;}
        
         }
        
      if(k>0){printf("yes\n");}
      else{printf("no\n");}
   
    }
  
return 0;    
}
int main()
{
	int n,i,b,j,d=1,l[100];
	char a[100][20];
	scanf("%d",&n);
	for(i=0;i<n;i++)
	{
		scanf("%s",&a[i]);
		l[i]=strlen(a[i]);
	}
	for(i=0;i<n;i++)
	{
		b=(int)a[i][0];
		if(a[i][0]=='_'||(b>=65&&b<=90)||(b>=97&&b<=122))
		{
			for(j=1;j<l[i];j++)
			{
				b=(int)a[i][j];
				if(a[i][j]=='_'||(b>=65&&b<=90)||(b>=97&&b<=122)||(b>=48&&b<=57))
				{
					d=d+1;
				}
				else
				{
					printf("no\n");
					d=d-1;
					break;
				}			
			}			
			if(d==l[i])
			{
				printf("yes\n");
			}
		}
		else
		{
			printf("no\n");
		}
		d=1;
	}
	return 0;
}
char *judge(char *head)
{
	int i,k=0;
	char *put=NULL;
	if(((*head<='z')&&(*head>='a'))||((*head<='Z')&&(*head>='A'))||(*head=='_'))
	{
		if(strcmp(head,"int")==0||strcmp(head,"double")==0||strcmp(head,"float")==0||strcmp(head,"for")==0||strcmp(head,"else")==0||strcmp(head,"if")==0)
		   put="no";
		
		else
		
		{
			for(i=1;*(head+i)!='\0';i++)
		
			{
			
				if(((*(head+i)<='z')&&(*(head+i)>='a'))||((*(head+i)<='Z')&&(*(head+i)>='A'))||(*(head+i)<='9')&&(*(head+i)>='0')||(*(head+i)=='_'))
				
					k++;
			
				else
				
				{
					put="no";
					break;
				}
		
			}
			if(strlen(head)-1==k)
				put="yes";
		}

	}
	
	else
        put="no";

	return(put);
}

void main()
{
	int n,i;
    char a[22]={'0'};
	scanf("%d\n",&n);
	for(i=0;i<n;i++)
	{
		scanf("%s",a);
		printf("%s\n",judge(a));
	}

}
//vc???pg????
//??????????C????
//???2013.12.21
//****************************

int main()
{
	int n=0,j=0,i=0,k=0;
	cin>>n;
	cin.get();
	while(n)
	{
		char a[100];
		j=0;
		gets(a);
		for(i=0;i<strlen(a);i++)
		{
			if(i==0)
			{
				if(a[0]=='_'||(a[0]>='a'&&a[0]<='z')||(a[0]>='A'&&a[0]<='Z'))
				    j++;
			    else
				   break;
			}
			else
			{
				if((a[i]>='a'&&a[i]<='z')||(a[i]>='A'&&a[i]<='Z')||a[i]=='_'||(a[i]>='0'&&a[i]<='9'))
				    j++;
				else
					break;
			}
		}
		if(j==strlen(a))
			cout<<"yes"<<endl;
		else
			cout<<"no"<<endl;
	  n--;
	}
	return 0;
}
int tag(char x);
void main()
{
	char a[30];
	int n,i=1,j,l;
	scanf("%d\n",&n);
	while(i<=n)
	{
		gets(a);
		j=0;
		l=strlen(a);
		while(a[j])
		{
			if(tag(a[j])==2) break;
			j++;
		}
		if(j==l&&tag(a[0])==1) printf("yes\n");
		else printf("no\n");
		i++;
	}
}
int tag(char x)
{
	if(x>='0'&&x<='9') return(0);
	else if(x>='A'&&x<='Z') return(1);
	else if(x>='a'&&x<='z') return(1);
	else if(x=='_') return(1);
	else return(2);
}
int main()
{
	char s[max+1];
	int i,j,n,r=0;
	scanf("%d",&n);
	for(i=0;i<n;i++){
		scanf("%s",s);
		for(j=0;s[j];j++){
			if(j==0){
				if((s[0]<='Z'&&s[0]>='A')||(s[0]<='z'&&s[0]>='a')||(s[0]=='_')){
					  r++;
			}else{
				printf("no\n");
				r=-1;
				break;
				}
			}else{
					if((j!=0&&s[j]<='9'&&s[j]>='0')||(j!=0&&s[j]<='Z'&&s[j]>='A')||(j!=0&&s[j]<='z'&&s[j]>='a')||(j!=0&&s[j]=='_')){
                    r++;
			}else{
				printf("no\n");
				r=-1;
				break;
			}
			}
		}
		if(r==j){printf("yes\n");}
			r=0;
	}

	return 0;
}
int main()
{
	char a[21];
	int n,i,j,a1;
	int m;
	scanf("%d",&n);
	for(i=0;i<n;i++)
	{
		m=0;
		scanf("%s",a);
		a1=strlen(a);
		for(j=0;j<a1;j++)
		{
			if(a[0]<='9'&&a[0]>='0')
			{
				printf("no\n");
				m+=1;
				break;
			}
			if((a[j]<='z'&&a[j]>='a')||(a[j]<='Z'&&a[j]>='A')||(a[j]<='9'&&a[j]>='0')||a[j]=='_')
			{
				m+=0;
			}
			else
			{
				m+=1;
			}
			if(m==1)
			{
				printf("no\n");
				break;
			}
		}
		if(m==0)
		{
			printf("yes\n");
		}
	}
	return 0;
}