semeru/Code-Code-CloneDetection-POJ104 huggingface dataset:
int main()
{
    char a[501],b[501];
	int i,j=0;
	double x,y,z;
	scanf("%lf",&x);
    scanf("%s",a);
    scanf("%s",b);
	y=strlen(b);
	for(i=0;a[i]!='\0';i++)
	{
	     if(strlen(a)!=strlen(b))
		 {
		      printf("error");
			  break;
		 }
         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");
			 break;
		 }
		 if(a[i]==b[i])
		 {
			 j++;
		 }
		 if(a[i+1]=='\0')
		 {
			 z=j/y;
             if(z>x){printf("yes");}else{printf("no");}
		 }
	}
    return 0;
}
int main()
{
double a,b,s,g;
scanf("%lf\n",&a);
char nm[501];
char qw[501];
gets(nm);
gets(qw);
int d,f,c,e,k;
c=0;
e=0;
k=0;
d=strlen(nm);
f=strlen(qw);
if(d!=f){
c=0;
} else{
	c=1;
      for(int h=0;h<d;h++){
if((nm[h]!='A'&&nm[h]!='T'&&nm[h]!='C'&&nm[h]!='G')||(qw[h]!='A'&&qw[h]!='T'&&qw[h]!='C'&&qw[h]!='G')){
			  e=e+1;
		  }
if(nm[h]==qw[h]){
			  k=k+1;
					  }
		  }
}
if(c==0||e!=0){
	printf("error");
}
if(c!=0&&e==0){
s=k*1.0;
g=d*1.0;
b=s/g;
if(b>=a){
printf("yes");
}
if(b<a){
printf("no");
}
}
}
int main(){
    int i,n,m;
	double c,d;
	char a[501],b[501];
	scanf("%lf",&c);
	scanf("%s %s",a,b);	
	m=strlen(a);
	n=0;
	for(i=0;a[i]!='\0';i++){
		    if(a[i]!='A'&&a[i]!='T'&&a[i]!='C'&&a[i]!='G'){
				 break;
			}
			if(b[i]!='A'&&b[i]!='T'&&b[i]!='C'&&b[i]!='G'){
				break;
			}
	}
	if(strlen(a)!=strlen(b)){
		printf("error");
	}else if(i<m){
		printf("error");
	}else if(i>=m){
		for(i=0;a[i]!='\0';i++){ 
		    if(a[i]==b[i]){
		 	    n+=1;
			}
		}
	    d=1.0*n/m;
	    if(d>c){
	     	printf("yes");
		}else{
		    printf("no");
		}    
	}
	return 0;
}
int main(){
  int len1,len2,i,same=0;
  double rate,z;
  char DNA[2][600];
  scanf("%lf",&rate);
  scanf("%s %s",DNA[0],DNA[1]);

 len1=strlen(DNA[0]);
 len2=strlen(DNA[1]);
 if(len1!=len2){
	 printf("error");
	 return 0;
 }
 else{
 for(i=0;i<len1;i++){
	 if(((DNA[0][i]!='A')&&(DNA[0][i]!='G')&&(DNA[0][i]!='C')&&(DNA[0][i]!='T'))||((DNA[1][i]!='A')&&(DNA[1][i]!='G')&&(DNA[1][i]!='C')&&(DNA[1][i]!='T'))){
		 printf("error");
		 return 0;
	 }
	 else{
	 if(DNA[0][i]==DNA[1][i])
		 same++;
 }
 }
z=(1.0*same)/len1;
if(z>=rate)
printf("yes");
else printf("no");

 }
return 0;

}
int main(){
	char DNA1[501],DNA2[501],isbreak;
	isbreak='n';
	double x,n;
	int i,l1,l2,t;
	t=0;
	scanf("%lf",&n);
	scanf("%s%s",DNA1,DNA2);
	l1=strlen(DNA1);
	l2=strlen(DNA2);
	if(l1!=l2){
		printf("error");
	}else{
	for(i=0;i<l1;i++){
		if((DNA1[i]!='A'&&DNA1[i]!='T'&&DNA1[i]!='C'&&DNA1[i]!='G')||(DNA2[i]!='A'&&DNA2[i]!='T'&&DNA2[i]!='C'&&DNA2[i]!='G')){
			isbreak='y';
			break;
		}else{
			if(DNA1[i]==DNA2[i]){
				t++;
			}
		}
	}
	if(isbreak=='y'){
		printf("error");
	}else{
		x=(1.0*t)/l1;
		if(x>n){
			printf("yes");
		}else{
			printf("no");
		}
	}
	}
	return 0;
}
int main(){
	int b,c,i,j1,j;
	double a,m,n;
	char s1[100],s2[100];
	c=0;
	scanf("%lf",&a);
	scanf("%s",s1);
	scanf("%s",s2);
	if(strlen(s1)!=strlen(s2)){
		printf("error");
		return 0;
	}else{
		for(i=0;s1[i]!='\0';i++){
			if(s1[i]!='A'&&s1[i]!='G'&&s1[i]!='C'&&s1[i]!='T'||s2[i]!='A'&&s2[i]!='G'&&s2[i]!='C'&&s2[i]!='T'){
				printf("error");
				return 0;
			}else{
				if(s1[i]==s2[i]){
					c++;
				}
			}
		}
	}
	m=1.0*strlen(s1);
	n=1.0*c;
	if(n/m>a){
		printf("yes");
	}else{
		printf("no");
	}
		return 0;
}
int main(){
char s1[501],s2[502];
int l1,l2,i;
double std,aa;
scanf("%lf\n",&std);
scanf("%s\n",s1);
scanf("%s",s2);
l1=strlen(s1);
l2=strlen(s2);
aa=-1;
if(l1==l2){
aa=0;
   for(i=0;i<l1;i++){
    if(s1[i]==s2[i])aa++;
	if(s1[i]!='A'&&s1[i]!='C'&&s1[i]!='T'&&s1[i]!='G'){aa=-1;break;}
    if(s2[i]!='A'&&s2[i]!='C'&&s2[i]!='T'&&s2[i]!='G'){aa=-1;break;}
   }
}
if(aa==-1)printf("error");
else{
 aa=aa/l1;
 if(aa>std)printf("yes");
 else printf("no");
}
return 0;
}
int main()
{
	int i,n,l1,l2,j,k=1;
	char d[2][501];
	double g,e,m;
	scanf("%lf",&g);
	scanf("%s",d[0]);
	scanf("%s",d[1]);
	l1=strlen(d[0]);
	l2=strlen(d[1]);
	if(l1!=l2){
		printf("error");
	}else{
		for(j=0;j<2;j++){
			for(i=0;i<l1;i++){
				if(d[j][i]!='A'&&d[j][i]!='T'&&d[j][i]!='C'&&d[j][i]!='G'){
					k=0;
					break;
				}
				if(k==0){
					break;
				}
			}
		}
		if(k==1){
			for(i=0;i<l1;i++){
				if(d[0][i]==d[1][i]){
					e++;
				}
			}
		}
	}
	if(l1==l2){
		if(k==1){
			m=1.0*e/l1;
			if(m>g){
				printf("yes");
			}else{
				printf("no");
			}
		}else{
			printf("error");
		}
	}
	return 0;
}
int main(){
    int i,j,l1,l2,count=0,o=1;
    double r;
    char a[1000],b[1000];
    scanf("%lf",&r);
    scanf("%s",a);
    scanf("%s",b);
    l1=strlen(a);
    l2=strlen(b);
    if(l1!=l2){
        printf("error");
        o=0;
        }
    else{
        for(i=0;i<l1;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=0;
                break;             
                }
             else{
                    if(a[i]==b[i]) count++;
                    }
            }
        if(1.0*count/l1>r&&o==1) printf("yes");
        else if(o==1) printf("no");    
        }
    
    
    scanf("%d",&i);
    return 0;
    }
int main()
{
	int l1,l2,i,count=0;
	double rate;
	char str1[LEN],str2[LEN];
	scanf("%lf",&rate);
	scanf("%s %s",str1,str2);
	l1=strlen(str1);
	l2=strlen(str2);
	if (l1!=l2)
	{
		printf("error");
		return 0;
	}
	for (i=0;i<l1;i++)
	{
		if (str1[i]==str2[i])
		{
			count++;
		}
		if (((str1[i]!='A')&&(str1[i]!='C')&&(str1[i]!='G')&&(str1[i]!='T'))||((str2[i]!='A')&&(str2[i]!='C')&&(str2[i]!='G')&&(str2[i]!='T')))
		{
			printf("error");
			return 0;
		}
	}
	if ((1.00*count/l1)>=rate)
	{
		printf("yes");
	}
	else
	{
		printf("no");
	}
	return 0;
}
int main(){
int n,i,x,y,s=0;
char a[501],b[501];
double m,o;
scanf("%lf",&m);
scanf("\n%s",a);
scanf("\n%s",b);
x=strlen(a);
y=strlen(b);
if(x!=y)printf("error");
if(x==y){
for(i=0;i<x;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");
		return 0;
	}
}

	for(i=0;i<x;i++){
		if(a[i]==b[i])s=s+1;
}
o=1.0*s/x;
if(o>m)printf("yes");
else printf("no");
}

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

	else {
		for(j=0;(b[0][j]!='\0')&&(b[1][j]!='\0');j++){                            
		t++;
		if(b[0][j]==b[1][j]) {i++;}
		}
	if((1.0*i/t)<=n) {  printf("no");} 
	else {printf("yes");}
	}
	}
   return 0;
}
int main()
{
	int i,t=0,s=0,l1,l2;
	double n,m;
    char a[256],b[256];
	scanf("%lf",&n);
	scanf("%s",&a);
	scanf("%s",&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')||(b[i]!='A'&&b[i]!='T'&&b[i]!='C'&&b[i]!='G'))
		{
			s=s+1;
		}
	}
	if(s!=0||l1!=l2)
	{
		printf("error");
	}
	else
	{
		for(i=0;i<l1;i++)
		{
			if(a[i]==b[i])
			{
				t=t+1;
			}
		}
		m=(double)t/l1;
		if(m>n)
		{
			printf("yes");
		}
		else printf("no");
	}
return 0;
}
int main()
{
	int max=0,n,i,count=0,m,j,num[200],left,flag=0;
    char a[100],b[100];
	double s;
	scanf("%lf",&s);
	scanf("%s",&a);
	scanf("%s",&b);
	if(strlen(a)==strlen(b))
	{
		n=strlen(a);
	}
	else
	{
		flag=1;
		printf("error");
	}
	if(flag==0)
	{
	for(i=0;i<n;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'))
		{
			flag=1;
			printf("error");
			break;
		}
		else
		{
			if(a[i]==b[i])
			{
				count++;
			}
		}
	}
	}
	if(flag==0)
	{
		if((double)count/n>s)
		{
			printf("yes");
		}
		else
		{
			printf("no");
		}
	}
	return 0;
}
int main()
{
	float n;
	char a[501]={'\0'},b[501]={'\0'};
	int i,sum=0,m=0;
	scanf("%f",&n);
	getchar();
	gets(a);
	gets(b);
	if(strlen(a)!=strlen(b))
	printf("error\n");
	else
	{
		for(i=0;a[i]!='\0';i++)
		{
			if(a[i]=='A'||a[i]=='T'||a[i]=='C'||a[i]=='G')
			{	
				if(b[i]=='A'||b[i]=='T'||b[i]=='C'||b[i]=='G')
				{
					if(a[i]==b[i])
					sum++;
				}
			}
			else
			{
				printf("error\n");
				m=1;
				break;
			}
		}
		if(m==0)
		{
			if(((float)sum/strlen(a))>n)
			printf("yes\n");
			else
			printf("no\n");
		}
	}
	
	return 0;
}
int main(){
	char mid,a[100],b[100];
	int i,j,stop,lengtha,lengthb,dif,error;
	double r,odd;
	dif=0;
	error=0;
	scanf("%lf",&odd);
	getchar();
	gets(a);
	gets(b);
	lengtha=strlen(a);
	lengthb=strlen(b);
	for(i=0;i<lengtha;i++){
		if(a[i]==b[i]){
			dif++;
		}
		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')){
			error++;
		}
	}
	r=1.0*dif/lengtha;
//	printf("error=%d\n",error);
	if(error>0||lengtha!=lengthb){
		printf("error");
	}else{
		if(r>odd){
			printf("yes");
		}else{
			printf("no");
		}
	}
	scanf("%d",&stop);
	return 0;
}
int main(){
    double n,x,y,m,t;
    x=0;
    int i,c;
    c=0;
    char a[501],b[501];
    scanf("%lf",&n);
    scanf("%s%s",a,b);
    m=strlen(a);
    t=strlen(b);
    if(m!=t){
        printf("error");
    }else{
        for(i=0;i<m;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'))){
                if(a[i]==b[i]){
                    x=x+1;
                }
            }else{
                c=c+1;
            }
        }
        y=x/m;
        if(c>0){
            printf("error");
        }else{
            if(y>n){
                printf("yes");
            }else{
                printf("no");
            }
        }
    }
    return 0;
}
int main()
{
int  i,j,t,l,p,sum=0;

double b,n;

char z[500],s[500];

scanf("%lf",&n);

scanf("%s",z);

scanf("%s",s);

l=strlen(z);

p=strlen(s);

if(l!=p)
{
  

  printf("error");
}
else
{
   for(i=0;i<l;i++)
   {
      if(z[i]=='A'&&s[i]=='A') sum++;

	  else  if(z[i]=='T'&&s[i]=='T') sum++;

	  else  if(z[i]=='C'&&s[i]=='C') sum++;

	  else  if(z[i]=='G'&&s[i]=='G') sum++;

	  else if((z[i]!='A'&&z[i]!='T'&&z[i]!='C'&&z[i]!='G')||(s[i]!='A'&&s[i]!='T'&&s[i]!='C'&&s[i]!='G'))
	  {
		 t=0;
		 
		 break;
	  }
   }

   if(t==0) printf("error");

   else 
   {
	   b=(double)sum/l;

	   if(b>n)
	   printf("yes");

	   else printf("no");
   }
}
 
 
 
 

return 0;



}
int main()
{
    char a[501];
	char b[501];
	int i,n,j,k;
	float v;
	j=0;
	k=0;
	n=0;
	scanf("%f",&v);
	scanf("%s",a);
	scanf("%s",b);
	for(i=0;a[i]!='\0';i++)
	{
		j=j+1;
		if((a[i]!='A')&&(a[i]!='T')&&(a[i]!='C')&&(a[i]!='G'))
		{
			printf("error");
			return 0;
		}
	}
	for(i=0;b[i]!='\0';i++)
	{
		k=k+1;
		if((b[i]!='A')&&(b[i]!='T')&&(b[i]!='C')&&(b[i]!='G'))
		{
			printf("error");
			return 0;
		}
	}
	if(j!=k)
	{
		printf("error");
		return 0;
	}
	for(i=0;a[i]!='\0';i++)
	{
		if(a[i]==b[i])
		{
			n=n+1;
		}
	}
	if(v*j<n)
	{
		printf("yes");
	}
	else
	{
		printf("no");
	}
	return 0;
}
int main(){
	int i,m=0;
	float k=0,n;
	char a[502],b[502];
	scanf("%f",&n);
	scanf("%s",a);
	scanf("%s",b);
	for(i=0;i<(strlen(a));i++){
		if(strlen(a)!=strlen(b)){
			m=0;
			break;
		}
		if(a[i]=='A'||a[i]=='T'||a[i]=='C'||a[i]=='G'){
			m++;
			if(a[i]==b[i]){
				k++;
			}
		}else{
			m=0;
			break;
		}
	}
	if(m==0){
		printf("error");
	}else{
	    if((k/(strlen(a)*1.00))>n){
		    printf("yes");
		}else{
		    printf("no");
		}
	}

	return 0;
}
int main(){
   int l,a,b,s,i;
   double n,x;
   char zfca[501];
   char zfcb[501];
   a=0;
   b=0;
   scanf("%lf",&n);
   scanf("%s",zfca);
   scanf("%s",zfcb);
    

    int la=strlen(zfca);
    int lb=strlen(zfcb);
   if (la!=lb){printf("error");}
   else {a=1;}
 
  if(a==1){
   while(1){
   for(i=0;zfca[i]!='\0';i++){
     if(zfca[i]!='A'&&zfca[i]!='T'&&zfca[i]!='C'&&zfca[i]!='G'){
            printf("error");
            break;}}
   if(zfca[i]!='\0'&&zfca[i]!='A'&&zfca[i]!='T'&&zfca[i]!='C'&&zfca[i]!='G'){break;}
   
   for(i=0;zfcb[i]!='\0';i++){
     if(zfcb[i]!='A'&&zfcb[i]!='T'&&zfcb[i]!='C'&&zfcb[i]!='G'){
            printf("error");
            break;}}
   if(zfcb[i]=='\0'){b=1;}
   break;  
}}
  if (a==1&&b==1){
    for(i=0,s=0;zfca[i]!='0';i++)
    {if(zfca[i]==zfcb[i]){s=s+1;}}
  if(a==1&&b==1){x=1.0*s/la;
     if(x>n){printf("yes");}
     else {printf("no");}
      }    
   }
  return 0;
}
int main()
{
	int i,j,l;
	double n;
	double k;
	scanf("%lf",&n);
	char a[1000],b[1000];
	scanf("%s",a);
	scanf("%s",b);
	for(i=0;i<=strlen(a)-1;i++)
	{
		if(a[i]!='A'&&a[i]!='T'&&a[i]!='C'&&a[i]!='G')
		{
			printf("error");
		    return 0;
		}
	}
	for(i=0;i<=strlen(a)-1;i++)
	{
		if(b[i]!='A'&&b[i]!='T'&&b[i]!='C'&&b[i]!='G')
		{
			printf("error");
			return 0;
		}
	}
	k=0;
	for(i=0;i<=strlen(a)-1;i++)
	{
		if(a[i]==b[i])
			k++;
	}
	k=k/(strlen(a));
	if(k>=n)
		printf("yes");
	else
		printf("no");
	return 0;
}
int main(){
	int i,a,b,c,d;
	double n;
	char xl1[500],xl2[500];
	c=0;
	scanf("%lf",&n);
	scanf("%s%s",xl1,xl2);
	a=strlen(xl1);
	b=strlen(xl2);
	if(a!=b){
		printf("error");
	}else{
		for(i=0;i<a;i++){
			if((xl1[i]!='A'&&xl1[i]!='T'&&xl1[i]!='G'&&xl1[i]!='C')||(xl2[i]!='A'&&xl2[i]!='T'&&xl2[i]!='G'&&xl2[i]!='C')){
				printf("error");
				d=0;
				break;
			}else{
				if(xl1[i]==xl2[i]){
					c++;
				}
			}
		}
            if(1.0*c/a>n&&d!=0){
		         printf("yes");
			}else if(1.0*c/a<=n&&d!=0){
	     	     printf("no");
			}
		
	}
	
	return 0;
}
int main (){
	int i,k;
	double c,s;
	char m,n;
	char a[501];
	char b[501];
	s=0.0;
	scanf("%lf%c%s%c%s",&c,&m,a,&n,b);
	if(strlen(a)!=strlen(b)){printf("error");return 0;}
	else
	{k=strlen(a);
		for(i=0;i<k;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");return 0;}
		if(a[i]==b[i]){s++;}
		}
	if(s*1.0/strlen(a)>=c)
	{printf("yes");}
	else
	{printf("no");}
	return 0;
	}

    
}
int main(){
int i,n;
double cd2,cd1,per,szp,s=0;
char zf[501],zf2[501];
scanf("%lf",&per);
scanf("%s",zf);
scanf("%s",zf2);
cd1=strlen(zf);
cd2=strlen(zf2);
if(cd1==cd2){
    for(i=0;i<cd1;i++){
		if(zf[i]=='A'||zf[i]=='T'||zf[i]=='C'||zf[i]=='G'&&zf2[i]=='A'||zf2[i]=='T'||zf2[i]=='C'||zf2[i]=='G'){
			if(zf[i]==zf2[i]){
				s=s+1;}}
		else {printf("error");
		       break;}
            if(i==cd1-1){szp=s/cd1;
                if(szp>per){printf("yes");}
                else{printf("no");}}
	}
}

else{printf("error");}

		return 0;}
int main (){
int i,lem,len,q;
double p,l;
char m[501],n[501];
scanf("%lf\n",&p);
scanf("%s\n",m);
scanf("%s",n);
lem=strlen(m);
len=strlen(n);
if(lem!=len)
{
printf("error");
return 0;
}
else
q=len;
int r=0;
for(i=0;i<q;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')))
	{
		printf("error");
		break;
	}
	else if(m[i]==n[i])
	{
		r++;
	}
}
if(i==q)
{l=1.0*r/q;
if(l>=p)
printf("yes");
else if(l<p)
printf("no");
}

return 0;
}
int main(){
double r;
int k=0,i,q=1;
char s[600],s1[600];
scanf("%lf",&r);
scanf("%s",s);
scanf("%s",s1);
if(strlen(s)!=strlen(s1))
q=0;
for(i=0;i<strlen(s);i++)
{
if(s[i]!='A'&&s[i]!='C'&&s[i]!='T'&&s[i]!='G'){
q=0;
break;
}
}
for(i=0;i<strlen(s1);i++)
{
if(s1[i]!='A'&&s1[i]!='C'&&s1[i]!='T'&&s1[i]!='G'){
q=0;
break;
}
}
if(q==1){
for(i=0;i<strlen(s);i++)
{
if(s[i]==s1[i])
k++;
}
if(1.0*k/strlen(s)>r)
{
printf("yes");
}
else
{
printf("no");
}
}
if(q==0)
printf("error");
return 0;
}
int main()
{
char a[600],b[600];
double n,x;
scanf("%lf\n",&n);
gets(a);
gets(b);
int i,j,a1,b1,xiangtong=0,zhengfou=1,y=0;
a1=strlen(a);
b1=strlen(b);
if(a1!=b1)
{printf("error");y=1;}
else
{
	for(i=0;i<a1;i++)
	{
	if(a[i]==b[i])
		xiangtong++;
    if(a[i]!='A'&&a[i]!='T'&&a[i]!='G'&&a[i]!='C')
		zhengfou=0;
    if(b[i]!='A'&&b[i]!='T'&&b[i]!='G'&&b[i]!='C')
		zhengfou=0;
	}
}
if(zhengfou==0)
printf("error");
else
if(y!=1)
{
  x=xiangtong*1.0/a1;
  if(x<=n)
	  printf("no");
  else
	  printf("yes");

}
return 0;
}
int main()
{
	char zfc[5][600];
	int i,p,q,sum=0;
	double n,flag;
	scanf("%lf",&n);
	for(i=0;i<2;i++)
	{
		scanf("%s",zfc[i]);
	}
	p=strlen(zfc[0]);
	q=strlen(zfc[1]);
	if(p!=q)
	{
		printf("error\n");
		return 0;
	}
	for(i=0;(zfc[0][i]!='\0')&&(zfc[1][i]!='\0');i++)
	{
		if((zfc[0][i]!='A'&&zfc[0][i]!='G'&&zfc[0][i]!='C'&&zfc[0][i]!='T')||(zfc[1][i]!='A'&&zfc[1][i]!='G'&&zfc[1][i]!='C'&&zfc[1][i]!='T'))
		{
			printf("error\n");
			return 0;
		}
		if(zfc[0][i]==zfc[1][i])
		{
			sum++;
		}
	}
	flag=1.0*sum/p;
	if(flag>n)
	{
		printf("yes");
	}
	else
	{
		printf("no");
	}
	return 0;
}
int main()
{  
	int i,n=0,k=0;
	double m;
	scanf("%lf",&m);
	char a[100];
	char b[100];
	scanf("%s\n%s",a,b);
	int l=strlen(a),t=strlen(b);
	   for(i=0;i<l;i++)
	   {
	   if(a[i]!='A'&&a[i]!='G'&&a[i]!='C'&&a[i]!='T') k++;
	   if(b[i]!='A'&&b[i]!='G'&&b[i]!='C'&&b[i]!='T') k++;
	   }
	  if(k>0) { printf("error");return 0;}
      
	 
	if(l==t) 
	 {
	for (i=0;i<=l;i++)
	{
		
	  if(a[i]==b[i]) n++;
	}
	  if((1.00*n/l)>m)  printf("yes");
	  
	  else printf("no");
	   
	   
	}
	 
	 else printf("error");
   return 0; 
}
int main(){
  int n,i,j,k,num=0,len1,len2,pos=0,lea;
  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");
  else{
    for(k=0;a[k]!='\0';k++){
     if(a[k]!='A'&&a[k]!='T'&&a[k]!='C'&&a[k]!='G'){
      pos=0;
      break;
      }
      else if(b[k]!='A'&&b[k]!='T'&&b[k]!='C'&&b[k]!='G'){
      pos=0;
      break;
      }
      else{
       pos=1;
        if(a[k]==b[k]){
      num++;
      
     }
     } 
    }
   if(pos==1){
     if(1.0*num/len1>rate)
      printf("yes");
     else
      printf("no");
    }
    
   else{
      printf("error");
    }
  }
 return 0;
}
int main(){
double n,r;
int m=0,i,s=0;
char a[500],b[500];
scanf("%lf",&n);
scanf("%s",a);
scanf("%s",b);
int x=strlen(a);
int 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'))
                                 &&((b[i]=='A')||(b[i]=='T')||(b[i]=='C')||(b[i]=='G')))){
                                                                                        
                                                                                        s++;
                                                                                        }
                                                                                        }
               
                                 if(s!=0){
                                          printf("error");
                                          }else{
                                                for(i=0;i<x;i++){
                                 if(a[i]==b[i]){
                                                                                         m++;
                                                                                         }
                                                                                         
                                                                                         }
                                                                                         r=1.0*m/x;
                                                                                         if(r>=n){
                                                                                                  printf("yes");
                                                                                                  }else{
                                                                                                        printf("no");
                                                                                                        }
                                                                                                        
                                                                                                        }
                                                                                                        }

return 0;
}
int main()
{
	double a,x;
	char dna1[500],dna2[500];
	int i,j=0,l1,l2,c=0;
	cin>>a>>dna1>>dna2;
	l1=strlen(dna1);
	l2=strlen(dna2);
	if(l1!=l2)
	{
		cout<<"error";
		c=1;
	}
	else
	{
		for(i=0;i<l1;i++)
		{
			if(dna1[i]!='A'&&dna1[i]!='T'&&dna1[i]!='G'&&dna1[i]!='C')
			{
				cout<<"error";
				c=1;
				break;
			}
			else if(dna2[i]!='A'&&dna2[i]!='T'&&dna2[i]!='G'&&dna2[i]!='C')
			{
				cout<<"error";
				c=1;
				break;
			}
		}
	}
	if(c==0)
	{
		for(i=0;i<l1;i++)
		{
			if(dna1[i]==dna2[i])
			{
				j=j+1;
			}
		}
		x=j*1.0/l1;
		if(x>a)
		{
			cout<<"yes";
		}
		else
		{
			cout<<"no";
		}
	}
	return 0;
}
int main()
{
	char yuanshi[500],bijiao[500],laji[3];
	double cankao,shiji;
	int jishu=0,i,m,n,panduan=0;
	scanf("%lf",&cankao);
	gets(laji);
	gets(yuanshi);
	gets(bijiao);
	m=strlen(yuanshi);
	n=strlen(bijiao);
	for(i=0;i<m;i++)
	{
		if(yuanshi[i]==bijiao[i])
			jishu++;
		if(yuanshi[i]!='A'&&yuanshi[i]!='T'&&yuanshi[i]!='G'&&yuanshi[i]!='C'&&yuanshi[i]!='\0')
			panduan++;
		if(bijiao[i]!='A'&&bijiao[i]!='T'&&bijiao[i]!='G'&&bijiao[i]!='C'&&bijiao[i]!='\0')
			panduan++;
	}
	if(m!=n||panduan!=0)
	{
		
		printf("error");
	}
	else if(m==n&&panduan==0)
	{
		shiji=jishu*1.0/m;
		if(shiji>cankao)
			printf("yes");
		else
			printf("no");
	}
	

	return 0;
}
int main(){
int i,m,d,e,f,r;
double a,g;
r=0;
scanf("%lf",&a);
char b[501],c[501];
for(i=0;i<2;i++){
	if(i==0){
		scanf("%s",b);
        m=strlen(b);
	}else{
		scanf("%s",c);
		d=strlen(c);
	}
}
if(m>=d){
	f=m;
}else{
	f=d;
}
e=0;
 for(i=0;i<f;i++){
		if((b[i]=='A'||(b[i]=='T')||b[i]=='C'||b[i]=='G')&&(c[i]=='A'||(c[i]=='T')||c[i]=='C'||c[i]=='G')){
			if(c[i]==b[i]){
					e++;
				}
		}else{
	        r=1;
			break;
		}
		
 }
 if((m==d)&&(r==0)){
   g=1.0*e/m;
     if(g>a){
			printf("yes");
	 }else{
			printf("no");
	 }
 }else{
	printf("error");
 }


return 0;

}
int cuo(char a)
{
 	if(a != 'A' && a!= 'T' && a!= 'C' && a!= 'G')
 		return 1;
	else 
 		return 0;
}
int main()
{
     	char a[510] = {0};
  	char b[510] = {0};
   	double bili;
  	cin >> bili >> a >> b;
  	double zong = 0, dui = 0;
  	for(int i = 0; i <= 500; i++)
  	{
   		if(a[i] == 0 || b[i] == 0)
   		{
        	if(a[i] == 0 && b[i] == 0)
         		break; 
        	else
    		{
          		cout <<"error";
          		return 0;
          	}
     	}
     	if(cuo(a[i])||cuo(b[i]))
   		{
        	cout << "error" ;
        	return 0;
     	}
		zong ++;
   		if(a[i] == b[i])
   			dui++;
	}
	if(dui / zong > bili)
		cout <<"yes";
  	else 
   		cout <<"no";	
	return 0;    
}
int main(){
	char asd[500],zxc[500];
	int i,j;
	double n;
	scanf("%lf",&n);
	scanf("%s",asd);
	scanf("%s",zxc);
	int len1=strlen(asd);
	int len2=strlen(zxc);
	int a1=0;
	int a2=0;
	for(i=0;i<len1;i++)
	{
		if(asd[i]!='A'&&asd[i]!='C'&&asd[i]!='G'&&asd[i]!='T')
			a1++;
	}
	for(i=0;i<len2;i++)
	{
		if(zxc[i]!='A'&&zxc[i]!='C'&&zxc[i]!='G'&&zxc[i]!='T')
			a2++;
	}
	if(a1!=0||a2!=0||len1!=len2)
		printf("error");
	else
	{
    	int d=0;
	    for(i=0;i<len1;i++)
		{
		    if(asd[i]==zxc[i])
			d++;
		}
	    double result=1.0*d/len1;
	    if(result>n)
		    printf("yes");
	    else
		    printf("no");
	}
	return 0;
}