semeru/Code-Code-CloneDetection-POJ104 huggingface dataset:
int main(){
	double e,s;
	char a[N],b[N];
	int l1,l2,i,j,t;
	
    scanf("%lf",&e);
    scanf("%s %s",&a,&b);
	
	l1=strlen(a);
	l2=strlen(b);

	for(i=0;i<l1;i++){
		if(a[i]!='A'&&a[i]!='T'&&a[i]!='C'&&a[i]!='G'){
		  printf("error\n");
		  return 0;
		}
	}
	
	for(j=0;j<l2;j++){
		if(b[j]!='A'&&b[j]!='T'&&b[j]!='C'&&b[j]!='G'){
		  printf("error\n");
		  return 0;
		}
	}

	if(l1!=l2){
	  printf("error\n");
	}
	
	else if(l1==l2){
      t=0;
	  for(i=0;i<l1;i++){
		  if(a[i]==b[i]){
		   t++;
		  }
	  }
      s=1.0*t/l1;
	  if(s>e){
		  printf("yes\n");
	  }else{
		  printf("no\n");
	  }
	}
	return 0;
}
int main(){
double n,y;
int a,b,x=0,k=1;
char sy[501],se[501];
scanf("%lf %s %s",&n,sy,se);
a=strlen(sy);
b=strlen(se);
if(a!=b){
  printf("error");
}
else{
	for(int i=0;i<a;i++){
		if((sy[i]=='A'||sy[i]=='T'||sy[i]=='C'||sy[i]=='G')&&(se[i]=='A'||se[i]=='T'||se[i]=='C'||se[i]=='G')){
		if(sy[i]==se[i]){
		  x+=1;
		}
		}
		else{
		  k=0;
		  break;
		}
	}
	if(k==0){
	printf("error");
	}
	else{
	y=1.0*x/a;
	if(y>=n){
	printf("yes");
	}
	else{
	printf("no");
	}
	}

}
return 0;
}
int main(){
    int b=0,i;
    char a[100][100],e[210];
    double n;
    gets(e);
    n=atof(e);
    gets(a[0]);
    gets(a[1]);
    int p=strlen(a[0]);
    int q=strlen(a[1]);
    if (p!=q){
        printf("error");
        return 0;
    }
    else { 
        for (i=0;i<p;i++){
            if(!(a[0][i]=='A'||a[0][i]=='T'||a[0][i]=='G'||a[0][i]=='C'&&a[1][i]=='A'||a[1][i]=='T'||

                a[1][i]=='G'||a[1][i]=='C')){
                printf("error");
                return 0;
            }
            else{
                if(a[0][i]==a[1][i]){
                    b++;
                }
            }
        }
    }
    if(1.0*b/p>n){
        printf("yes");
    }
    else  {
        printf("no");
    }



    
        return 0;
        }
int main()
{
	double p;
	int e=0,t=0,f=0,q=0;
	char a[501],b[501];
	scanf("%lf\n",&p);
	gets(a);
	gets(b);
	if(strlen(a)!=strlen(b))q=1;
	else
	{
		for(int i=0;1;i++)
		{
			if(a[i]=='\0')break;
			if(a[i]!='A' && a[i]!='G' && a[i]!='C' && a[i]!='T')
			{
				q=1;
				break;
			}
			if(b[i]!='A' && b[i]!='G' && b[i]!='C' && b[i]!='T')
			{
				q=1;
				break;
			}
			if(a[i]==b[i])e++;
			t++;
		}
	}
	if(q==1)printf("error");
	else
	{
		if(p<1.0*e/t)printf("yes");
		if(p>1.0*e/t)printf("no");
	}
	return 0;
}
int main(){
	int i,j,len1,len2,num=0,t=1;
        double rate;
	char a[500],b[500];
     scanf("%lf",&rate);
     scanf("%s",a);
    scanf("%s",b);
    len1=strlen(a);
    len2=strlen(b);
    if(len1!=len2){
      printf("error");
      }
     if(len1==len2){
       for(i=0;i<len1;i++){
       if(a[i]==b[i]&&(a[i]=='A'||a[i]=='T'||a[i]=='C'||a[i]=='G')&&(b[i]=='A'||b[i]=='T'||
b[i]=='C'||b[i]=='G'))
        num++;
       else if((a[i]!='A'&&a[i]!='T'&&a[i]!='C'&&a[i]!='G')||(b[i]!='A'&&b[i]!='T'&&
b[i]!='C'&&b[i]!='G')){
        t=0;
        break;
       }
       }
      if(t==0)
       printf("error");
      else {
        if(num*1.0/len1>rate)
         printf("yes");
        else 
         printf("no");
      }
      
    }
     
	return 0;
}
int main()
{
	double n,t=0;
	int i,j;
	scanf("%lf",&n);
	char dna1[600],dna2[600];
	scanf("%s %s",dna1,dna2);
	int len1=strlen(dna1),len2=strlen(dna2);
	int flag=1;
	for(i=0,j=0;i<len1,j<len2;i++,j++)
	{
		if(len1!=len2||dna1[i]!='A'&&dna1[i]!='T'&&dna1[i]!='C'&&dna1[i]!='G'||dna2[j]!='A'&&dna2[j]!='T'&&dna2[j]!='C'&&dna2[j]!='G')
		{
			printf("error");
			flag=0;
			break;
		}
		if(dna1[i]==dna2[j])
		{
			t++;
		}

	}
	
	if(flag==1)
	{
		if(t/len1>n)
		{
			printf("yes");
		}
		else
			printf("no");
	}
	return 0;
}
int main(){
    int c,d,e,count=0,i;
    double result,n;
    scanf("%lf",&n);
    char a[500],b[500];
    scanf("%s%s",a,b);
    c=strlen(a);
    d=strlen(b);
    if(c!=d)
    printf("error");
    else{
        for(i=0;i<c;i++){
            if((a[i]!='A'&&a[i]!='T'&&a[i]!='C'&&a[i]!='G')||(b[i]!='A'&&b[i]!='T'&&b[i]!='C'&&b[i]!='G')){
                printf("error");
                result=-1;
                break;
            }
            else{

            if(a[i]==b[i])
            count++;
            }
        }
        if(result!=-1){

        result=(double)count/c;
        if(result>n)
           printf("yes");
        else
           printf("no");
        }
    }


    return 0;
}
int main()
{
    int i,j,len1,len2,m=0;
    double a,n,b;
    char jy1[501],jy2[501];
    scanf("%lf",&a);
    scanf("%s\n",jy1);
    scanf("%s\n",jy2);
    len1=strlen(jy1);
    len2=strlen(jy2);
    for(i=0;i<len1;i++)
    {
        if((jy1[i]!='A')&&(jy1[i]!='T')&&(jy1[i]!='C')&&(jy1[i]!='G'))m++;
    }
    for(j=0;j<len2;j++)
    {
        if((jy2[j]!='A')&&(jy2[j]!='T')&&(jy2[j]!='C')&&(jy2[j]!='G'))m++;
    }
    if(m>0)
    {
        printf("error");
    }
    else if(len1==len2)
    {
        for(i=0;i<len1;i++)
        {
            if(jy1[i]==jy2[i])n++;
        }
        b=n/len1;
        if(b>a)
        {
            printf("yes");
        }
        else printf("no");
    }
    else printf("error");
}
int main(){
       int l1,l2,i,sum=0,w=0;
       float rate,result;
       char zfc_1[600],zfc_2[600];
       scanf("%f",&rate);
       scanf("%s",zfc_1);
       scanf("%s",zfc_2);
       l1=strlen(zfc_1);
       l2=strlen(zfc_2);
       for(i=0;i<l1;i++){
       if((l1!=l2)||(zfc_1[i]!='A'&&zfc_1[i]!='T'&&zfc_1[i]!='G'&&zfc_1[i]!='C')||(zfc_2[i]!='A'&&zfc_2[i]!='T'&&zfc_2[i]!='G'&&zfc_2[i]!='C')){
         printf("error");
         w=1;
         break;
         }
       else{
         if(zfc_1[i]==zfc_2[i]){
           sum++;}
         else{continue;}
         }
       }
       result=1.00*sum/l1;
       if(result>rate){
         printf("yes");}
       else if((result<=rate)&&(w==0))
         printf("no");
       return 0;
       }
int main()
{
	double k,h=0;
	char a[1000],b[1000];
	int i,n,m;
	scanf("%lf",&k);
	scanf("%s",a);
	scanf("%s",b);
	n=strlen(a);
	m=strlen(b);
	if(n!=m)
		printf("error");
	else
	{
	for(i=0;i<n;i++)
	{
		if(a[i]!='A'&&a[i]!='T'&&a[i]!='G'&&a[i]!='C')
		{
			printf("error");
			break;
		}
		else if(b[i]!='A'&&b[i]!='T'&&b[i]!='G'&&b[i]!='C')
		{
			printf("error");
			break;
		}
		else
		{
			if(a[i]==b[i])
				h++;
		}
	}
	h=h*1.0/n;
	if(h>k)
		printf("yes");
	else if(a[i]!='A'&&a[i]!='T'&&a[i]!='G'&&a[i]!='C'&&b[i]!='A'&&b[i]!='T'&&b[i]!='G'&&b[i]!='C')
		printf("no");
	}
	return 0;
}
int main(){
double m,n,r;
int a,b,c;
int i,j;
char d1[600];
char d2[600];
scanf ("%lf",&m);
scanf ("%s",d1);
scanf ("%s",d2);
a=strlen(d1);
b=strlen(d2);
c=0;
if (a==b){
for (i=0;i<a;i++){
	if (((d1[i]!='A')&&(d1[i]!='T')&&(d1[i]!='C')&&(d1[i]!='G'))||((d2[i]!='A')&&(d2[i]!='T')&&(d2[i]!='C')&&(d2[i]!='G'))){
	printf ("error");
	return 0;
	}
	else{
	if (d1[i]==d2[i]){
		c++;
		}
	}
r=1.0*c/a;
}
if (r>m){
printf ("yes");}
else {printf ("no");
}}
else {printf ("error");}
return 0;
}
int main()
{
	int i,g=0,j,e,k,flag=1;
	double n,m;
	char s[2][502];
	scanf("%lf",&n);
	for(i=0;i<2;i++){
		scanf("%s",s[i]);
	}
	e=strlen(s[1]);
	k=strlen(s[0]);
	if(e!=k){
		flag=0;
	}
	if(flag==1){
		for(i=0;i<2;i++){
			for(j=0;s[i][j];j++){
				if((s[i][j]!='A')&&(s[i][j]!='G')&&(s[i][j]!='C')&&(s[i][j]!='T')){
					flag=0;
				}
			}
		}
	}
	for(j=0;s[0][j];j++){
		if(s[0][j]==s[1][j]){
			g++;
		}
	}
	m=1.0*g/e;
	if(flag==1){
		if(m>n){
			printf("yes\n");
		}else{
			printf("no\n");
		}
	}else{
		printf("error\n");
	}
	return 0;
}
int main(){
    float std,rate,sign;
    int i,l1,l2;
    char dna1[500],dna2[500];
    
    scanf("%f",&std);
    scanf("%s %s",dna1,dna2);
    l1=strlen(dna1);
    l2=strlen(dna2);
    sign=0;
    
    if(l1!=l2) {
               printf("error");
               return 0;
               }

    for(i=0;i<l1;i++){
                          switch(dna1[i]){
                                          case'A':break;
                                          case'T':break;
                                          case'G':break;
                                          case'C':break;
                                          default:printf("error");return 0;
                                          }
                          switch(dna2[i]){
                                          case'A':break;
                                          case'T':break;
                                          case'G':break;
                                          case'C':break;
                                          default:printf("error");return 0;
                                          }
                          if(dna1[i]==dna2[i]) sign++;
                      }
    rate=sign/l1;
    
    if(rate>=std) printf("yes");
    else printf("no");
    
    scanf("%d",&i);
    return 0;
                                                            
}
int main(){
	double a;
	int i,j=0;
	char dna1[501],dna2[501];
	scanf("%lf",&a);
	scanf("%s",&dna1);
	scanf("%s",&dna2);
	int len1=strlen(dna1);
    int len2=strlen(dna2);
	if(len1!=len2){
		printf("error");
		return 0;
	}
	for(i=0;i<len1;i++){
		if((dna1[i]!='A'&&dna1[i]!='T'&&dna1[i]!='G'&&dna1[i]!='C')||(dna1[i]!='A'&&dna1[i]!='T'&&dna1[i]!='C'&&dna1[i]!='G')){
			printf("error");
			return 0;
		}
	}
	for(i=0;i<len1;i++){
		if(dna1[i]==dna2[i]){
			j++;
		}
	}
	if(1.0*j/len1>a){
		printf("yes");
	}else{
		printf("no");
	}
	return 0;
}
int main(){
	char k[501],h[501];
	double c,d;
	scanf("%lf",&c);
	scanf("%s",k);
	scanf("%s",h);
	int sum=0;
	int a;
	a=strlen(k);
	int b;
	b=strlen(h);
	if(a!=b)
		printf("error");
	else if(a==b){
		for(int i=0;i<a;i++){
			if((k[i]!='A'&&k[i]!='T'&&k[i]!='C'&&k[i]!='G')||(h[i]!='A'&&h[i]!='T'&&h[i]!='C'&&h[i]!='G')){
				printf("error");
			return 0;
			}
			else{
				if(k[i]==h[i])
					sum++;
			}
		}
		if(1.0*sum/a>c)
			printf("yes");
		else
			printf("no");
	}

	return 0;
}
int main()
{
	int i , lena , lenb ;
	double r ,same = 0,j=0;
	char a[10000];
	char b[10000];
	scanf("%lf",&r);
	scanf("%s",&a);
	scanf("%s",&b);
	lena = strlen (a);//????
	lenb = strlen (b);
	if (lena != lenb )//????
	{
		printf("error");
	}
	else
	{
		for(i=0 ; i <=lena-1 ; i++)//???
		{
			if( a[i] == b[i])//????
			{
				same++;
			}
			else if(a[i]!='A'&& a[i]!='T'&&a[i]!='C'&& a[i]!='G')
			{
				printf("error");
				j=1;
				break;
			}
			else if(b[i]!='A'&& b[i]!='T'&& b[i]!='C'&& b[i]!='G')
			{
				printf("error");
				j=1;
				break;
			}
		}
	}
	if(j==0 && lena==lenb)
	{
		if((same/lena) > r)
		{
			printf( "yes" );
		}
		else
		{
			printf( "no" );
		}

	}
     return 0;

}
void main()
{
int len1, len2 , i , count = 0 , error = 0 ;
double line ;
char str1[ 600 ] , str2[ 600 ] ;
scanf( "%lf" , &line );
scanf( "%s" , str1 );
scanf( "%s" , str2 );

len1 = strlen( str1 );
len2 = strlen( str2 );

if( len1 != len2 )
{
printf( "error\n" );
return ;
}

for( i = 0 ; i < len1 ; i ++ )
{
if( str1[ i ] != 'A' && str1[ i ] != 'C' && str1[ i ] != 'G' && str1[ i ] != 'T' )
error ++ ;
if( str2[ i ] != 'A' && str2[ i ] != 'C' && str2[ i ] != 'G' && str2[ i ] != 'T' )
error ++ ;

if( str1[ i ] != str2[ i ] )
count ++ ;
}

if( error )
printf( "error\n" );
else
{
if( (double)(len1 - count)/len1 > line )
printf( "yes\n" );
else
printf( "no\n" );
}

}
int main(){
int i,k,a1,a2,w;
char DNA1[501],DNA2[501];
double n,q;
scanf("%lf",&n);
scanf("%s",&DNA1);
scanf("%s",&DNA2);
a1=strlen(DNA1);
a2=strlen(DNA2);
k=0;
w=1;
if(a1==a2){
for(i=0;i<a1;i++){
	if((DNA1[i]!='A'&&DNA1[i]!='G'&&DNA1[i]!='C'&&DNA1[i]!='T')||(DNA2[i]!='A'&&DNA2[i]!='G'&&DNA2[i]!='C'&&DNA2[i]!='T'))
	{w*=0;}
	else{if(DNA1[i]==DNA2[i]){k++;}}
	w*=1;
}
q=k*1.0/a1;
if(w==0){printf("error");}
else{if(q>n){printf("yes");}
     else{printf("no");}}
}
else{printf("error");}
return 0;
}
int main(){
	int i,l,m,d=0,b=1;
	char zf[501]={0},zc[501]={0};
	double a,e;
	scanf("%lf",&a);
	scanf("%s",zf);
	scanf("%s",zc);
	l=strlen(zf);
	m=strlen(zc);
	if(l!=m){
		printf("error");
	}else{
		for(i=0;i<l;i++){
			if(zf[i]!='A'&&zf[i]!='T'&&zf[i]!='C'&&zf[i]!='G'){
				printf("error");
				b=0;
				break;
			}
			if(zc[i]!='A'&&zc[i]!='T'&&zc[i]!='C'&&zc[i]!='G'){
				printf("error");
				b=0;
				break;
			}
		}
		if(b==1){
		    for(i=0;i<l;i++){
			     if(zf[i]==zc[i]){
				     d++;
				 }
			}
		    e=1.0*d/l;
	        if(e>a){
		    	printf("yes");
			}else{
		    	printf("no");
			}
		}
	}
	return 0;
}
int main(){
	double n,s=0,m;
	scanf("%lf",&n);
	char a[600],b[600];
	scanf("%s%s",&a,&b);
	int l1,l2;
	l1=strlen(a);
	l2=strlen(b);
	if(l1!=l2){
		printf("error");
	}
	if(l1==l2){
		int i,T=0;
		for(i=0;a[i]!='\0'&&b[i]!='\0';i++){
			if((a[i]=='A'||a[i]=='T'||a[i]=='G'||a[i]=='C')&&(b[i]=='G'||b[i]=='T'||b[i]=='A'||b[i]=='C')){
			if(a[i]==b[i]){
					s++;
				}	
			}
			else {
				printf("error");
				T=1;
				break;
				
			}
		}
		if(T==0){
		m=s/l1;
		if(m>n){
			printf("yes");
		}
		if(m<=n){
			printf("no");
		}
		}
	}
	return 0;
}
int main(){
    char a[501],b[501],ratio[20];
    double r,R;
    int i,c;
    gets(ratio);
    r=atof(ratio);
    gets(a);
    gets(b);
    if(strlen(a)!=strlen(b)){
        printf("error");
        return 0;
    }
    for(i=0;a[i]!='\0';i++){
        if((a[i]!='A'&&a[i]!='G'&&a[i]!='C'&&a[i]!='T')||(b[i]!='A'&&b[i]!='G'&&b[i]!='C'&&b[i]!='T')){
            printf("error");
            return 0;
        }
    }
    c=0;
    for(i=0;a[i]!='\0';i++){
        if(a[i]==b[i]){
            c=c+1;
        }
    }
    R=(1.0*c)/strlen(a);
    if(R>=r){
        printf("yes");
    }else{
        printf("no");
    }
    return 0;
}
int main() 
{
    double n,c=0;
    int i,j=0,zs;
    char s1[501],s2[501];
    scanf("%lf",&n);
    scanf("%s%s",s1,s2);
if(strlen(s1)!=strlen(s2))
{
    printf("error");
}else{
      zs=strlen(s1);
      for(i=0;i<zs;i++)
      {
          if(s1[i]=='G'||s1[i]=='A'||s1[i]=='C'||s1[i]=='T')
          {
                 j++;
          }
      }
      
      if(j!=zs)
      {
                 printf("error");
                 return 0;
      }else{
         for(i=0;i<zs;i++)
         { 
                     if(s1[i]-s2[i]==0)
                     {
                                     c=c+1;
                     }
         }
         if(c/zs>n)
         {
                     printf("yes");
         }else{
                     printf("no");
         }
      }
}
  return 0;
}
int main(){
    int x,y,i,a;
    double w,n;
    x=0;
    y=0;
    n=0;
    a=0;
    char sz[500],s[500];
    scanf("%lf",&w);
    scanf("%s",sz);
    scanf("%s",s);
    for(i=0;sz[i]!='\0';i++){
       x++; 
    }
    for(i=0;s[i]!='\0';i++){
       y++; 
    }
    if(x!=y){
       a=1;
    }
    else if(x==y){
        for(i=0;sz[i]!='\0';i++){
            if(sz[i]=='A'||sz[i]=='C'||sz[i]=='T'||sz[i]=='G'){
             if(sz[i]==s[i]){
                n=n+1;
             }
             else if(s[i]!='A'&&s[i]!='T'&&s[i]!='C'&&s[i]!='G'){
                a=1;
             }
            }
            else if(sz[i]!='A'&&sz[i]!='T'&&sz[i]!='C'&&sz[i]!='G'){
                a=1;
            }
        }
    }
       if(a==1){
           printf("error");
       }
    else if(a==0){
      n=1.0*n/x; 
        if(n>=w){
        printf("yes");
      }
      else if(n<w){
        printf("no");
      }
    }
    return 0;
}
int main(){
int i,k,l,s=0,p=0;
double n,m;
char a[600],b[600];
scanf("%lf",&n);
scanf("%s%s",&a,&b);
k=strlen(a),l=strlen(b);
for(i=0;i<k;i++){
    if((a[i]!='A')&&(a[i]!='T')&&(a[i]!='C')&&(a[i]!='G')){
        p++;
    }
}
for(i=0;i<k;i++){
    if(a[i]==b[i]){
        s++;
    }
}
m=1.0*s/k;
if((k==l)&&(p==0)&&(m>n)){
    printf("yes");
}
else if((k==l)&&(p==0)&&(m<=n)){
    printf("no");
}
else{
    printf("error");
}
return 0;
}
int main() {
double n,c;
int i,j=0,m,s,t;
char a[501],b[501];
scanf("%lf\n",&n);
scanf("%s",a);
scanf("\n");
scanf("%s",b);
m=strlen(a);s=strlen(b);if(m<=s){t=m;}else{t=s;}
for(i=0;i<t;i++){
if(a[i]!='A'&&a[i]!='C'&&a[i]!='T'&&a[i]!='G'||m!=s){
printf("error");j=-1;break;}
if(a[i]==b[i]){
j++;}
}
c=1.0*j/m;
if(c>n){printf("yes");}
else if(c<=n&&c>=0){printf("no");}
return 0;
}
int main(){
    double k;
    int N=1;
    char kk[100];
    gets(kk);
    k=atof(kk);
    char aa[10000];
    gets(aa);
    char bb[10000];
    gets(bb);
    int na,nb;
    na=strlen(aa);
    nb=strlen(bb);
    int n=0;
    if(na!=nb){N=0;}else{
        for(int i=0;i<na;i++){
            if(aa[i]==bb[i]&&(aa[i]=='A'||aa[i]=='T'||aa[i]=='C'||aa[i]=='G')){
                n++;
            }else if(aa[i]=='a'||aa[i]=='t'||aa[i]=='c'||aa[i]=='g'||bb[i]=='a'||bb[i]=='t'||bb[i]=='c'||bb[i]=='g'){
                N=0;
            }
        }
    }
    if(N==0){printf("error");}else{
        double p;
        p=1.0*n/na;
        if(p>k){printf("yes");}else{
            printf("no");
        }
    }
    return 0;
}
int main()
{
	char a[500],b[500];
	int i,len,n=0,x,y;
	double m,p;
	scanf("%lf",&m);
	scanf("%s%s",a,b);
	x=strlen(a);
	y=strlen(b);
	len=strlen(a);
	for(i=0;i<len;i++)
	{
		if(a[i]>'Z'||a[i]<'A')
		{
			printf("error");
			return 0;}
	}
	if(x!=y)
		printf("error");
	else
	{
		len=strlen(a);
		for(i=0;i<len;i++)
		{
			if(a[i]==b[i])
			{
				n++;
			}
		}
	
	p=(double)n/len;
	if(p>m)
	{
		printf("yes");
	}
	else if(p<=m)
		printf("no");
	}
	return 0;
}
int main(){
double b;
char x[1000],y[1000];
int i,t,a1,a2,p1,p2;
scanf("%lf",&b);
scanf("%s",x);
scanf("%s",y);
t=0;a1=0;a2=0;p1=0;p2=0;
for(i=0;x[i]!=0;i++){
a1++;  
if(x[i]!='G'&&x[i]!='C'&&x[i]!='T'&&x[i]!='A'){p1++;}
}
for(i=0;y[i]!=0;i++){
a2++;  
if(y[i]!='G'&&y[i]!='C'&&y[i]!='T'&&y[i]!='A'){p2++;}
}
if(p1>0||p2>0||a1!=a2){printf("error");}else{
  for(i=0;y[i]!=0;i++){
   if(x[i]==y[i]){t++;}
}   if(1.0*t/a1>b){printf("yes");}else{printf("no");}
}
return 0;
}
char a[501];
char b[501];
int main(){
	double n,d=0;
	int e=0,i,k=1,lena,lenb;
	scanf("%lf",&n);
	scanf("%s",a);
	scanf("%s",b);
	lena=(int)strlen(a);
	lenb=(int)strlen(b);
	for(i=0;a[i];i++){
		if((a[i]!='A'&&a[i]!='T'&&a[i]!='G'&&a[i]!='C')||(b[i]!='A'&&b[i]!='T'&&b[i]!='G'&&b[i]!='C')||lena!=lenb){
         d=-1;
		 break;
		}
		else if(a[i]==b[i]){e++;}
	}
    if(d==0){d=1.0*e/i;}
	if(d>n){printf("yes");}
	if(d<=n&&d>=0){printf("no");}
	if(d<0){printf("error");}
return 0;
}
int main(){
    int n1,n2,l=0;
	double e,q=0;
	int i;
	char a[501],b[501];
    
	
	scanf("%lf\n",&e);
	gets(a);
	gets(b);
    n1=strlen(a);
    n2=strlen(b);
    
    if(n1!=n2){
	printf("error");
    l++;
	}
    if(l==0){
	   for(i=0;i<n1;i++){
		 if(a[i]!='A'&&a[i]!='T'&&a[i]!='C'&&a[i]!='G'){
		  printf("error");
		  l++;
		  break;
		 }
	
	  }
	
	}
	if(l==0){
	   for(i=0;i<n2;i++){
		        if(b[i]!='A'&&b[i]!='T'&&b[i]!='C'&&b[i]!='G'){
		          printf("error");
				  l++;
				  break;
				}
	
	   }
	
	}
      
    
	
	if(l==0){
	   for(i=0;i<n1;i++){
	   
	      if(a[i]==b[i]){
	         q++;
		  }
	   }
	   if((q/n1)>e){
	      printf("yes");
	   }else{
	      printf("no");
	   }
	
	}
	

return 0;

}
int main(){
	char gene1[500];
	char gene2[500];
	int i;
	int s=0;
	double r;
	scanf("%lf",&r);
	scanf("%s",&gene1);
	scanf("%s",&gene2);
	int len1=strlen(gene1);
	int len2=strlen(gene2);
	int fuhe=1;
	for(i=0;i<=len1-1;i++){
		if((gene1[i]!='A'&&gene1[i]!='T'&&gene1[i]!='C'&&gene1[i]!='G')||(gene2[i]!='A'&&gene2[i]!='T'&&gene2[i]!='C'&&gene2[i]!='G')){
			fuhe=0;
		}
	}
	if(len1!=len2||fuhe==0){
		printf("error");
	}else{
		for(i=0;i<=len1-1;i++){
			if(gene1[i]==gene2[i]){
				s+=1;
			}else{
				s+=0;
			}
		}
		if(1.00*s/len1>r){
			printf("yes\n");
		}else{
			printf("no\n");
		}
	}
	
	return 0;
}
int main()
{
	int i,s=0,j=1;
	double r;
	char d1[501],d2[501];
	scanf("%lf %s %s",&r,d1,d2);
	if(strlen(d1)!=strlen(d2)){
		printf("error");
	}else{
		for(i=0;i<strlen(d1);i++){
			if(d1[i]!='A'&&d1[i]!='C'&&d1[i]!='G'&&d1[i]!='T'&&d2[i]!='A'&&d2[i]!='G'&&d2[i]!='C'&&d2[i]!='T'){
				j=0;
				printf("error");
				break;
			}else if(d1[i]==d2[i]){
				s++;
			}
		}
		if(j==1){
			if(1.0*s/strlen(d1)>r){
				printf("yes");
			}else{
				printf("no");
			}
		}
	}
	return 0;
}
int main()
{
	double a, b=0, c=0, l1=0, l2=0;
	int  i, t=0;
	char m[501], n[501];

	scanf("%lf\n", &a);
	scanf("%s\n", m);
	scanf("%s\n", n);

	l1=strlen(m);
	l2=strlen(n);

	if(l1!=l2)
		printf("error\n");
	else{
		for(i=0; i<l1; i++){
			if((m[i]=='A'||m[i]=='T'||m[i]=='C'||m[i]=='G')&&
				(n[i]=='A'||n[i]=='T'||n[i]=='C'||n[i]=='G'))
				t++;
		}
		
		if(t!=l1)
			printf("error\n");
		else{
			b=l1;
			for(i=0; i<l1; i++){
				if(m[i]==n[i])
					c++;
			}
				
			if(c/b>a)		
				printf("yes\n");
			else
				printf("no\n");
		}
	}
	return 0;
}
int main (){
int x,y,w=0,i,o=0;
double c,k;
char a[501],b[501];
scanf ("%lf",&c);
scanf ("%s%s",a,b);
x=strlen(a);
y=strlen(b);
if (x!=y){
printf ("error");
}else if(x==y){
for (i=0;i<x;i++){
if ((a[i]!='A'&&a[i]!='T'&&a[i]!='G'&&a[i]!='C')||(b[i]!='A'&&b[i]!='T'&&b[i]!='G'&&b[i]!='C')){
printf ("error");
o++;
break;
}else{
if (a[i]==b[i])
w++;
}
}
k=1.0*w/x;
if (o==0){
if (k>c)
printf ("yes");
else
printf ("no");
}
}
return 0;
}
int main(){
int s=0,i,x,y,e=0;
double r;
char a[500],b[500];
scanf("%lf",&r);
scanf("%s%s",a,b);
x=strlen(a);
y=strlen(b);
if(x!=y){printf("error");}
else{
    for(i=0;i<x;i++){
     if(a[i]!='A'&&a[i]!='T'&&a[i]!='C'&&a[i]!='G'){e=e+1;}  
     else{if(a[i]==b[i]){s=s+1;}}
    }
if(e!=0){printf("error");}
else{
if(1.0*s/x>r){printf("yes");}
else printf("no");}}
return 0;
}
int main(){
	int i,c,d,j=1;
	double n,m,q=0;
    char a[501],b[501];
	scanf("%lf",&n);
	scanf("%s",a);
    scanf("%s",b);
	c=strlen(a);
	d=strlen(b);
	
	for(i=0;a[i];i++){
		if((a[i]!='T'&&a[i]!='A'&&a[i]!='G'&&a[i]!='C')||(b[i]!='A'&&b[i]!='G'&&b[i]!='T'&&b[i]!='C')||c!=d){
            printf("error");
			j=0;
		break;}}
	if(j==1){
	for(i=0;a[i];i++){
		if(a[i]==b[i]){
			m++;}}
	q=m/c;
	if(q>n){
		printf("yes");}
	else{
		printf("no");}}

			
return 0;
}
int main(){
 double x,y;
 int i,t=1,r;
 char s1[500];
 char s2[500];
 scanf("%lf",&x);
 scanf("%s%s",s1,s2);
 int len1=strlen(s1);
 int len2=strlen(s2);
 if(len1!=len2){
	 t=0;
 }else{
	 int cnt=0;
	 for(i=0;i<len1;i++){
		 if((!(s1[i]=='A'||s1[i]=='T'||s1[i]=='C'||s1[i]=='G'))||  (!(s2[i]=='A'||s2[i]=='T'||s2[i]=='C'||s2[i]=='G')  ) ){
		 t=0;
		 }
	 }
	 for(i=0;i<len1;i++){
		 if(s1[i]==s2[i]){
		 cnt++;
		 }
	 }
	 y=1.0*cnt/len1;
	 if(y>x){
	 r=1;
	 }else{
	 r=2;
	 }
 }
 if(t==0){
	 printf("error");
 }else if(t==1&&r==1){
	 printf("yes");
	 }else if(t==1&&r==2){
	 printf("no");
	 }
return 0;
}
int main(){
	double p;
	int la,i,y=0,lb,s=0;
	char zfa[501],zfb[501];
	scanf("%lf",&p);
	scanf("%s",zfa);
	scanf("%s",zfb);
	la=strlen(zfa);
	lb=strlen(zfb);
	if(la!=lb){
       y=1;
	}
	if(y==0){
	for(i=0;zfa[i]!='\0'&&zfb[i]!='\0';i++){
		if(((zfa[i]!='A')&&(zfa[i]!='T')&&(zfa[i]!='C')&&(zfa[i]!='G'))||((zfb[i]!='A')&&(zfb[i]!='T')&&(zfb[i]!='C')&&(zfb[i]!='G'))){
			y=1;
			break;
	   
		}
		if(zfa[i]==zfb[i]){
		s++;
		}
	}
	if((1.0*s/la)>p&&y==0){
	printf("yes");
	}
	else if(y==0){
	printf("no");
	}
	}
	if(y==1){
 printf("error");
	
	}



	return 0;
	

	






}
int main ( ){
	int i,num=0,a1,b1,t=1;
	char a[500],b[500];
	double n;
	scanf("%lf",&n); 
    scanf("%s%s",a,b);
	a1=strlen(a);
	b1=strlen(b);
	if(a1!=b1){
	printf("error");
	
	t=0;}
    else {
	  for(i=0;i<a1;i++){
		  if(a[i]!='A'&&a[i]!='T'&&a[i]!='C'&&a[i]!='G'){
		  printf("error");t=0;
		  break;
		  }
		  if(b[i]!='A'&&b[i]!='T'&&b[i]!='C'&&b[i]!='G'){
		  printf("error");t=0;
		  break;

		  }
	  }
	
	}

	if(t==1){
		for(i=0;i<a1;i++){
			if(a[i]==b[i]){
			num++;
			}
		}
		if(1.0*num/a1>n){
		   printf("yes");
		}
		else{
		  printf("no");
		}
	}


    



return 0;
}
int main()
{
	int i,j,a,b,c=0,d=0;
	double x,y=0;
	char s[501],z[501];
	scanf("%lf",&x);
	scanf("%s",s);
	scanf("%s",z);
	for(i=0;i<501;i++)
	{
		if(s[i]=='\0')
		{
			break;
		}
		if((s[i]!='A'&&s[i]!='T'&&s[i]!='G'&&s[i]!='C')||(z[i]!='A'&&z[i]!='T'&&z[i]!='C'&&z[i]!='G'))
		{
			c=1;
		}
	}
	for(j=1;j<501;j++)
	{
		if(s[j]=='\0')
		{
			break;
		}
	}
	a=j;
	for(j=1;j<501;j++)
	{
		if(z[j]=='\0')
		{
			break;
		}
	}
	b=j;
	if(c==1||a!=b)
	{
		printf("error");
		return 0;
	}
	for(i=0;i<a;i++)
	{
		if(s[i]==z[i])
		{
			d++;
		}
	}
	y=(d-1)*1.0/(a-1);
	if(y>=x)
	{
		printf("yes");
	}
	else
	{
		printf("no");
	}
	return 0;
}