semeru/Code-Code-CloneDetection-POJ104 huggingface dataset:
int main()
{
	int len1,len2,i,x;
	double n,result=0,result1;
	char dna1[500];
	char dna2[500];
	scanf("%lf",&n);
	scanf("%s%s",dna1,dna2);
	len1=strlen(dna1);
	len2=strlen(dna2);
	if(len1!=len2)
	{
		printf("error");
		return 0;
	}
	if(len1==len2)
	{
		for(i=0;i<len1;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')))
			{
				x=1;
			}
			else
			{
				x=0;
				break;
			}
		}
	}
	if(x==0)
	{
		printf("error");
		return 0;
	}
	if(x==1)
	{
	for(i=0;i<len1;i++)
	{
		if(dna1[i]!=dna2[i])
		{
			result++;
		}
	}
	result1=(double)1-(result/len1);
	if((result1)>n)
	{
		printf("yes");
	}
	if((result1)<=n)
	{
		printf("no");
	}
	}
	return 0;
}
int main()
{
	double n,r;
	int i,a,b,c,d,e=0;
	char q[501];
	char w[501];
	scanf("%lf",&n);
    scanf("%s%s",q,w);
	a=strlen(q);
	b=strlen(w);
	if(a!=b){
		printf("error");
	}else{
		c=a,d=b;
	   for(i=0;i<a;i++){
	  	 if(q[i]!='A'&&q[i]!='C'&&q[i]!='G'&&q[i]!='T'){
			c--;
		}
	}
	for(i=0;i<b;i++){
		if(w[i]!='A'&&w[i]!='C'&&w[i]!='G'&&w[i]!='T'){
			d--;
		}
	}
	if(a!=c||b!=d){
		printf("error");
	}else{
		for(i=0;i<a;i++){
			if(q[i]==w[i]){  
				e++;                       
			}
		}
       r=1.0*e/a;
	if(r>=n){
		printf("yes");
	}else{
		printf("no");
	}
	}
	}
	
	return 0;
}
int main()
{
	int i,q=1;
	double s=0.0,len,res,req;
	char a[1000],b[1000];
	scanf("%lf",&req);
	scanf("%s",a);
	scanf("%s",b);
	len=strlen(a);
	for(i=0;i<len;i++)
	{
		if(a[i]!='A'&&a[i]!='T'&&a[i]!='G'&&a[i]!='C')
			q=0;
		if(b[i]!='A'&&b[i]!='T'&&b[i]!='G'&&b[i]!='C')
			q=0;
	}
	if(q==0) printf("error\n");
	else if(q!=0)
	{
		for(i=0;i<len;i++)
		{
		  if(a[i]==b[i])
		  {
			s++;
		  }
	}
	res=s/len*1.0;
	if(req<res) 
	printf("yes\n");
	else printf("no\n");
	}
		return 0;
}
int main(){
	double r;
	char s[501];
	char t[501];
	int m,n,i,k=0;
	scanf("%lf",&r);
	scanf("%s",&s);
	scanf("%s",&t);
	m=strlen(s);
	n=strlen(t);
	if(m!=n){
		printf("error");
	}else{
		for(i=0;i<n;i++){
			if((s[i]!='A'&&s[i]!='G'&&s[i]!='C'&&s[i]!='T')||(t[i]!='A'&&t[i]!='G'&&t[i]!='C'&&t[i]!='T')){
				k=-1;
				break;
			}else if(s[i]==t[i]){
				k++;
			}
		}
		if(k==-1){
			printf("error");
		}else if((1.0*k/n)>r){
			printf("yes");
		}else{
			printf("no");
		}
	}
	return 0;
}
int main()
{
	int i;
	int num=0;
	double alike,n;
	char jj1[500]={0};
	char jj2[500]={0};
	scanf("%lf",&n);
	scanf("%s",jj1);
	scanf("%s",jj2);
	int result1=strlen(jj1);
	int result2=strlen(jj2);
	if(result1!=result2){
		printf("error");
		
	    return 0;
}
	else{
		result2=result1;
		for(i=0;i<result1;i++){
			if(((jj1[i]=='A')||(jj1[i]=='G')||(jj1[i]=='C')||(jj1[i]=='T'))&&((jj2[i]=='A')||(jj2[i]=='G')||(jj2[i]=='C')||(jj2[i]=='T'))){
				if(jj1[i]==jj2[i]){
					num+=1;
				}
}
			
			else{
				printf("error");
return 0;
			
			}
		}
	}
		alike=1.0*num/result1;
		if(alike>=n)
		{	printf("yes");
		}
		else{
			printf("no");
		}


	





    
	return 0;
}
int main(){
int i;
char d[3][501];
double n,m,a,b,c,x;
x=0;
scanf("%lf",&a);
scanf("%s",&d[1]);
scanf("%s",&d[2]);
n=strlen(d[1]);
m=strlen(d[2]);
for(i=0;i<n;i++){
	if((d[1][i]!='A'&&d[1][i]!='G'&&d[1][i]!='C'&&d[1][i]!='T')||(d[2][i]!='A'&&d[2][i]!='G'&&d[2][i]!='C'&&d[2][i]!='T')){
		x++;
	}
}
if(m!=n||x>0){
	printf("error");
}else{
for(i=0;i<n;i++){
	if(d[1][i]==d[2][i]){
		b++;
	}
}
c=b/n;
if(c>a){
	printf("yes");
}else{
	printf("no");
}
}
return 0;
}
int main(){
    int i,j,c,d,e=0,t=0;
    double n,m;
    char a[501],b[500];
    scanf("%lf",&n);
    scanf("%s",a);
    scanf("%s",b);
    c=strlen(a);
    d=strlen(b);
    for(i=0;a[i]!='\0';i++)
    {
        if(a[i]!='A'&&a[i]!='G'&&a[i]!='C'&&a[i]!='T')
        {
            t++;
        }
    }
    for(i=0;b[i]!='\0';i++)
    {
        if(b[i]!='A'&&b[i]!='G'&&b[i]!='C'&&b[i]!='T')
        {
            t++;
        }
    }
    if(t>0)
    {
        printf("error");
    }
    else if(t==0)
    {
        if(c==d)
        {             
            for(i=0;a[i]!='\0';i++)
            {
                if(a[i]==b[i])e++;
            }
            m=e*1.0/c;
            if(m>n){
                printf("yes");
            }else{
               printf("no");
           }
        }
        else
        {
            printf("error");
        }
    }
    return 0;
}
int main(){
	int i,p=0,t=0,r=0;
	double k,q;
	char gen1[1000],gen2[1000];
	scanf("%lf",&k);
	scanf("%s",gen1);
	scanf("%s",gen2);
	if(strlen(gen1)!=strlen(gen2)){
	printf("error\n");
	}else{
		for(i=0;i<strlen(gen1);i++){
			if(gen1[i]!='A'&&gen1[i]!='C'&&gen1[i]!='G'&&gen1[i]!='T'){
		r++;
			}
		}
		for(i=0;i<strlen(gen2);i++){
		if(gen2[i]!='A'&&gen2[i]!='C'&&gen2[i]!='G'&&gen2[i]!='T')
		r++;
		}
		if(r>0){
		printf ("error");
        t=0;
		}else{
		t=1;
		}
	if(t==1){
		for(i=0;i<strlen(gen1)+1;i++){
			if(gen1[i]==gen2[i]){
			p++;
			}
		}
	    q=1.0*p/(strlen(gen1));
		 if(q>k){
		 printf("yes\n");
		 }else{
		 printf("no\n");
		 }
	}
}
return 0;
}
int main(){
    int i,n,m,result;
    double c,w;
    int a=0;
    scanf("%lf",&w);
    scanf("\n");
    char xlyi[501],xler[501];
    gets(xlyi);
    gets(xler);
    n=strlen(xlyi);
    m=strlen(xler);
    if(m!=n){
        result=0;
    }else{
    for(i=0;i<n;i++){
        if((xlyi[i]!='A'&&xlyi[i]!='G'&&xlyi[i]!='C'&&xlyi[i]!='T')||(xler[i]!='A'&&xler[i]!='G'&&xler[i]!='C'&&xler[i]!='T')){
            result=0;
        }else{
            result=1;
        }
      }
    }
    if(result==1){
    for(i=0;i<m;i++){
            if(xlyi[i]==xler[i]){
                a++;
            }
        }
    }
    c=1.00*a/n;
    if(result==0){
        printf("error");
    }else if(c>=w){
        printf("yes");
    }else if(c<w){
        printf("no");
    }
    return 0;
}
int main(){
	double a,b;
	int n1,n2,m=0,c=0;
	char s1[500],s2[500];
	scanf("%lf",&a);
	scanf("%s %s",s1,s2);
	n1=strlen(s1);
	n2=strlen(s2);
	for(int 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')){
			if(s1[i]==s2[i]){
				m++;
			}
		}else c=1;
	}
	if(c==1||n1!=n2){
		printf("error\n");
	}
	else {
		b=m*1.0/n1;
		if(a<b){
			printf("yes\n");
		}
		else printf("no\n");
	}
	return 0;
}
int main()
{
	double m;
	scanf("%lf",&m);
	char a[500],b[500];
	scanf("%s%s",a,b);
	int ci=0;
	int pan=0;
	int aa=strlen(a),bb=strlen(b);
	if(aa!=bb)
	{
		printf("error");
	}
	else
	{
		int i;
		for(i=0;i<aa;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");
				pan=1;
				break;
			}
			else
				if(a[i]==b[i])
			{
				ci++;
			}
		}
	   double bi=(double)ci/aa;
	  if(pan==0)
	  {
	    if(bi>=m)
		{
		printf("yes");
		}
	    else
		{
		printf("no");
		}
	  }
	}




	return 0;
}
int main(){
	char a[1000],b[1000];
	double w;
	int count=0,lena,lenb;
	scanf("%lf",&w);
	cin>>a;
	cin>>b;
	lena=strlen(a);
	lenb=strlen(b);

	if(lena!=lenb)printf("error");
	else{
		int i,j,k=0;
		for(i=0;i<lena;i++){
		if(!((a[i]=='A'||a[i]=='C'||a[i]=='G'||a[i]=='T')&&(b[i]=='A'||b[i]=='G'||b[i]=='C'||b[i]=='T'))){
			printf("error");k=1;break;

		}
	}
		if(k==0){
			for(j=0;j<lena;j++){
				if(a[j]==b[j])count++;
			}
			double what;
			what=(double)count/lena;
				if(what>=w)printf("yes");
				else printf("no");
				}
			}
	return 0;
		}
int main(){
double x,y;
int l,i,xg=0,cw=0;
char jy[2][500];
scanf("%lf",&x);
scanf("%s %s",jy[0],jy[1]);
if(strlen(jy[0])==strlen(jy[1])){
l=strlen(jy[0]);
 for(i=0;i<l;i++){
	 if(jy[0][i]==jy[1][i]){
	 xg++;
	 }
	 if((jy[0][i]!='A'&&jy[0][i]!='T'&&jy[0][i]!='C'&&jy[0][i]!='G')||
		 (jy[1][i]!='A'&&jy[1][i]!='T'&&jy[1][i]!='C'&&jy[1][i]!='G')){
	 cw++;
	 }
 }
 y=1.0*xg/l;
}
else if(strlen(jy[0])!=strlen(jy[1])){
cw++;
}
if(cw==0){
	printf(y>x?"yes":"no");
}
else if(cw!=0){
printf("error");
}
return 0;

}
int main(){
	int i,x,y,m=0;
	double n;
	char a[501],b[501];
	scanf("%lf\n",&n);
	gets(a);
	gets(b);
	x=strlen(a);
	y=strlen(b);
	if(x==y){
		for(i=0;i<x;i++){
			if(a[i]!='A'&&a[i]!='G'&&a[i]!='C'&&a[i]!='T'){
				printf("error");
				break;
			}else{
				if(b[i]!='A'&&b[i]!='G'&&b[i]!='C'&&b[i]!='T'){
					printf("error");
					break;
				}else{
					if(a[i]==b[i])
						m++;
			}}
			if(i==x-1){
				if(1.0*m/x>n){
					printf("yes");
				}else{
					printf("no");
		}}}
	}else{
		printf("error");
	}
	return 0;
}
int main()
{
	int i,m,n,x=0;
	double p,y;
	char a[500],b[500];
	scanf("%lf\n",&p);
	gets(a);
	gets(b);
	m=strlen(a);
	n=strlen(b);
	if(m!=n)
	{
		printf("error");
		return 0;
	}
	else
	{
		for(i=0;i<m;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");
				return 0;
			}
			else
			{
				if(a[i]==b[i])
				{
					x++;
				}
			}
		}
		y=(double)x/m;
		if(y>p)
		{
			printf("yes");
		}
		else
		{
			printf("no");
		}
		return 0;
	}
}
int main(){
	double e;
	char zf[2][501],count=0,c,w=0;
    scanf("%lf%c",&e,&c);
	gets(zf[0]);
	gets(zf[1]);
    int a=strlen(zf[0]),b=strlen(zf[1]);
	if(a!=b){
		printf("error");
	}else{
		for(int m=0;m<a;m++){
			for(int o=0;o<2;o++){
				if(zf[o][m]!='A'&&zf[o][m]!='T'&&zf[o][m]!='G'&&zf[o][m]!='C'){
					w++;
				}
			}
		}
		if(w!=0){
			printf("error");
		}else{
		for(int i=0;i<a;i++){
			if(zf[0][i]==zf[1][i]){
				count++;
			}
		}
		if(1.0*count/a>e){
			printf("yes");
		}else{
			printf("no");
		}
		}
	}
    
    return 0;
}
int main(){
char zfc1[500],zfc2[500];
int i,j,t,len1,len2;
double n;
   scanf("%lf",&n);
   scanf("%s %s",zfc1,zfc2);
   len1=strlen(zfc1);
   len2=strlen(zfc2);
   for(i=0;zfc1[i];i++){
   if (len2!=len1||(zfc1[i]!='A'&&zfc1[i]!='T'&&zfc1[i]!='G'&&zfc1[i]!='C')||(zfc2[i]!='A'&&zfc2[i]!='T'&&zfc2[i]!='G'&&zfc2[i]!='C')){
   printf("error");
   return 0;}
   }






	t=0;
	for(j=0;zfc1[j]!='\0';j++){
		if(zfc1[j]==zfc2[j]){
		t++;}
	}
	if(1.0*t/len1>n){
	printf("yes");
	return 0;}
	else {
	printf("no");}

     

      

return 0;


}
int main()
{
	int i,n,m,j;
	double x,y,z,std;
	x=1.0;
	char aa[1000];
	char bb[1000];
	scanf("%lf",&std);
	scanf("%s",aa);
	scanf("%s",bb);
	n=strlen(aa);
	m=strlen(bb);
	if(m!=n)
	{
		printf("error");
		return 0;
	}
	for(i=0;i<n;i++)
	{
		if((aa[i]!='A')&&(aa[i]!='T')&&(aa[i]!='G')&&(aa[i]!='C')&&(bb[i]!='A')&&(bb[i]!='T')&&(bb[i]!='C')&&(bb[i]!='G'))
		{
			printf("error");
			return 0;
		}
	}
	for(i=0;i<n;i++)
	{
		if(aa[i]==bb[i])
		{
			x=x+1;
		}
	}
	y=n*1.0;
	z=x/y;
	if(z>std)
	{
		printf("yes");
	}
	else
	{
		printf("no");
	}
	return 0;
}
int main(){
	char a[501],b[501];
	int i,x,y,z,c;
	double n,p;
	scanf("%lf",&n);
	scanf("%s",&a);
	scanf("%s",&b);
	x=strlen(a);
	y=strlen(b);
	z=0;
	c=0;
	if(x!=y){
		printf("error");
	}else{
		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')){
				c++;
				if(a[i]==b[i]){
				z++;
				}
			}
		}
		p=1.000*z/x;
		if(c==x&&p>n){
			printf("yes");
		}else if(c==x&&p<=n){
			printf("no");
		}else if(c!=x){
			printf("error");
		}
	}
	return 0;
}
void main()
{
	char a[500],b[500],c[10];
	double n;
	int sum=0;
	int i,j=0;
	scanf("%lf",&n);
	gets(c);
	gets(a);
	gets(b);
	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");
			goto end;
		}
		if(a[i]==b[i])
			sum++;
	}
	if(b[i]!='\0')
		printf("error");
	else 
	{
		if((double)sum/i>n)
		printf("yes");
		else printf("no");
	}
end:;


		

}
int main(){
int i,x,y,m=0,c=1;
double z,w;
char a[1000],b[1000];
scanf("%lf\n",&z);
scanf("%s\n%s",a,b);
x=strlen(a);
y=strlen(b);
if(x!=y){
  printf("error");c=0;
}
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')){printf("error");c=0;break;}
else if(a[i]==b[i]){m++;
w=1.0*m/x;}
}}

if(c!=0){if(w>z)printf("yes");else printf("no");}

return 0;
}
main()
{
      double n;
      char a[600],b[600];
      scanf("%lf",&n);
      scanf("%s",a);
      scanf("%s",b);
      int len=strlen(a),time=0,i;
      if(strlen(a)!=strlen(b)) printf("error\n");
      else 
      {
           for(i=0;i<len;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')) break;
                   else if(a[i]==b[i]) time++;
           }
           if(i==len)
           {
                     if((double)time/(double)len>n) printf("yes\n");
                     else printf("no\n");
           }
           else printf("error\n");
      }
}
int main()
{
	int i,k,sum=0,flag=0;
	double m;
	char zifu1[501],zifu2[501];
	scanf("%lf",&m);
	scanf("\n");
	gets(zifu1);
	gets(zifu2);
	if(strlen(zifu1)==strlen(zifu2))
	{
		for(i=0;i<600;i++)
		{
			if(zifu1[i]=='\0')
			{
				break;
			}
			else if((zifu1[i]=='A'||zifu1[i]=='T'||zifu1[i]=='C'||zifu1[i]=='G')&&(zifu2[i]=='A'||zifu2[i]=='T'||zifu2[i]=='C'||zifu2[i]=='G'))
			{
				if(zifu1[i]==zifu2[i])
				{
					sum++;
				}
			}
			else
			{
				printf("error");
				flag=1;
				break;
			}
		}
		if(flag==0)
		{
			if(1.0*sum/strlen(zifu1)>m)
			{
				printf("yes");
			}
			else
			{
				printf("no");
			}
		}
	}
	else
	{
		printf("error");
	}
	return 0;
}
int main(){
	double n;
	scanf("%lf",&n);
	char zfc[500],sz[500];
	scanf("%s%s",zfc,sz);
	int a=strlen(zfc);
	int b=strlen(sz);
	int m;
    if(a!=b){printf("error");}
	else{
		m=a;
		int k=0;
		int y;
		for(y=0;y<m;y++){
			if(zfc[y]!='A'&&zfc[y]!='T'&&zfc[y]!='C'&&zfc[y]!='G'&&zfc[y]!='\0'){
				printf("error");
			k=1;
			break;}
			if(sz[y]!='A'&&sz[y]!='T'&&sz[y]!='C'&&sz[y]!='G'&&zfc[y]!='\0'){
				printf("error");
			k=1;
			break;}
		}
			if(k==0){
		
	int i,c=0;
	for(i=0;i<m;i++){
		if(zfc[i]==sz[i]){
			c++;
		}
	}
	double s=c*1.0/m;
	if(s>n){printf("yes");}
	else{printf("no");}
	}
		}
	return 0;
}
int main(){
	int i;
	double n,a=0,b=0,t=0,k=0;
	char s[501], str[501];

	scanf("%lf",&n);
    scanf("%s",s);
	scanf("%s",str);

	for(i=0;s[i];i++){
		a++;
	}
	for(i=0;str[i];i++){
		b++;
	}
	if(a==b){
	 for(i=0;s[i];i++){
		 if((s[i]=='A'||s[i]=='G'||s[i]=='C'||s[i]=='T')&&(str[i]=='A'||str[i]=='G'||str[i]=='C'||str[i]=='T')){
		   if(s[i]==str[i]){
			 t++;
		   }
		 }
		 else{
			 printf("error");
			 k=1;
	         break;	 
		 }
	 }
	if(t/a>n&&k==0){
		printf("yes");
	}
	else if(k==0){
			printf("no");
	}
	}
	else{
		printf("error");
	}


		


	return 0;
}
main()
{
    double p;
    cin>>p;
    char a[501],b[501];
    cin>>a;
    cin>>b;
    if(strlen(a)!=strlen(b)){
       cout<<"error";
    }else{
     int len,i,sum=0,w=0;
     len=strlen(a);
     for(i=0;i<len;i++){
       if((a[i]!='A'&&a[i]!='C'&&a[i]!='G'&&a[i]!='T')||(b[i]!='A'&&b[i]!='C'&&b[i]!='G'&&b[i]!='T'))
          w+=1;
     }
     for(i=0;i<len;i++){
       if(a[i]==b[i])
         sum+=1;
     }
     if(w==0&&(1.0*sum/len)>p){
       cout<<"yes";
     }else if(w==0&&(1.0*sum/len)<=p){
       cout<<"no";
     }else{
       cout<<"error";
     }
    }
    return(0);
}
int main()
{
 int w=0,g=0;
 double n;
 char v[100],c[100];
 scanf("%lf",&n);
 scanf("%s",v);
 scanf("%s",c);
 char A,T,G,C;
 if(strlen(v)!=strlen(c))
  {
    printf("error");                     
  }
 else
    {
       for(int i=0;i<=strlen(v)-1;i++)
        { 
          if(((v[i]!='A')&&(v[i]!='G')&&(v[i]!='C')&&(v[i]!='T'))||((c[i]!='A')&&(c[i]!='G')&&(c[i]!='C')&&(c[i]!='T')))
          {     g=1;
               printf("error");
               break;                                                                                    
          }
          else if(v[i]==c[i])
            {
              w++;          
            }        
        } 
       
      double l=1.0*w/strlen(v);
      if((l>n)&&(g==0)){printf("yes");}
      else if((l<=n)&&(g==0)){printf("no");}                                   
    }
int u;scanf("%d",&u);    
   return 0;          
}
int main(){
	int n,k=0,i;
	double e;
	char str[501],s[501];
	scanf("%lf",&e);
	scanf("%s %s",str, s);
	for(i=0;i<strlen(str);i++){
		if(str[i]!='A'&&str[i]!='T'&&str[i]!='G'&&str[i]!='C'){
			printf("error");
		    return 0;
		}
	}
	for(i=0;i<strlen(s);i++){
		if(s[i]!='A'&&s[i]!='T'&&s[i]!='G'&&s[i]!='C'){
			printf("error");
			return 0;
		}
	}
	if(strlen(str)!=strlen(s)){
		printf("error");
	}else if(strlen(str)==strlen(s)){
		n=strlen(s);
		for(i=0;i<n;i++){
			if(str[i]==s[i]){
				k++;
			}
		}
		if((1.0*k/n)>e){
			printf("yes");
		}else{
			printf("no");
		}
	}
	return 0;
 }
int main ()
{
	int i,c=0,d=0,e=0,g=0;
	double f,k;
	char a[503],b[503];
	scanf("%lf",&k);
	scanf ("%s",a);
	scanf ("%s",b);
	for (i=0;i<503;i++)
	{
		if (a[i]=='\0')
			break;
		else
			c=c+1;
		if (a[i]!='T'&&a[i]!='A'&&a[i]!='C'&&a[i]!='G')
			g=g+1;
			
	}
	for (i=0;i<503;i++)
	{
		if (b[i]=='\0')
			break;
		else
			d=d+1;
		if (b[i]!='T'&&b[i]!='A'&&b[i]!='C'&&b[i]!='G')
			g=g+1;
	}
	if (c!=d||g!=0)
		printf ("error\n");
	else
	{
		for (i=0;i<c;i++)
		{
			if (a[i]==b[i])
				e=e+1;
		}
		f=1.0*e/c;
		if(f>k)
			printf ("yes\n");
		else
			printf("no\n");
	}
	return 0;
}
int main(){
    int i,j;
    double n=0,biao,l=1,len;
    char shuzu[3][501];
    scanf("%lf",&biao); 
    for(i=0;i<3;i++){
        scanf("%s",shuzu[i]);          
                  }
    len=1.0*strlen(shuzu[0]);
     if(strlen(shuzu[0])-strlen(shuzu[1])){ 
            printf("error"); 
           }
     else{                    
         for(i=0;i<len;i++){
             if(!((shuzu[0][i]=='A'||shuzu[0][i]=='G'||shuzu[0][i]=='C'||shuzu[0][i]=='T')&&(shuzu[1][i]=='A'||shuzu[1][i]=='G'||shuzu[1][i]=='C'||shuzu[1][i]=='T'))){
                   l=0;                                                                                                                                                   }
             if(shuzu[0][i]==shuzu[1][i])
                   n++;
                          }
        if(l){                  
           if((n/len)>biao)
               printf("yes");
           else
               printf("no");
           
               }
        else
           printf("error");
          }    
    return 0;
}
int main(){
	double a;
	char b[101];
	char c[101];
	scanf("%lf%s%s",&a,b,c);
	if(strlen(b)!=strlen(c)){
		printf("error\n");
		return 0;
	}
	int n=strlen(b);
	int i;
	for(i=0;i<n;i++){
		if(b[i]!='A'&&b[i]!='T'&&b[i]!='C'&&b[i]!='G'){
			printf("error\n");
		    return 0;
		}
		if(c[i]!='A'&&c[i]!='T'&&c[i]!='T'&&c[i]!='G'&&c[i]!='C'){
			printf("error\n");
			return 0;
		}
	}
	int count=0;
	for(i=0;i<n;i++){
		if(b[i]==c[i]){
			count+=1;
		}
	}
	double d;
	d=1.0*count/n;
	if(d>a){
		printf("yes\n");
	}else{
		printf("no\n");
	}
	return 0;
}
int main()
{
	char a[501],b[501];
	int i,summ;
	double bl,sjbl,s,sum;
	s=0;
	scanf("%lf",&bl);
	scanf("%s",a);
	scanf("%s",b); 
	sum=strlen(a);
	summ=strlen(b);
     if(sum!=summ)
	{
		printf("error");
		return 0;
}else{
	for(i=0;i<sum;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++;
	}
}
	sjbl=s/sum;
    if(sjbl>bl)
	{
		printf("yes");
	}else{
		printf("no");
	}
    return 0;
}
int main (){
	double r,x;
	int l,l1,l2,i,j,t=0,flag=0;
	char a[100],b[100];
	scanf("%lf",&r);
	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'){
			continue;
		}
		else{
			flag=1;
		}
	}
    for(j=0;j<l2;j++){
		if(b[j]=='A'||b[j]=='T'||b[j]=='C'||b[j]=='G'){
			continue;
		}
		else{
			flag=1;
		}
	}
	if(l1!=l2||flag==1){
		printf("error");
		return 0;
	}
	else{
        l=l1;
		for(i=0;i<l;i++){
			if(a[i]==b[i]){
				t=t+1;
			}
		}
		x=(double)t/l;
		if(x>r){
			printf("yes");
		}
		else{
			printf("no");
		}
	}
	return 0;
}
int main()
{
	char w1[501],w2[501];
	int len1,len2;
	int i,a=0,b=0;
    double n,m;
	scanf("%lf",&n);
	scanf("%s",w1);
	scanf("%s",w2);
	len1=strlen(w1);
	len2=strlen(w2);
    if(len1!=len2)
		printf("error");
	else{
        for(i=0;i<len1-1;i++){
			if((w1[i]!='A'&&w1[i]!='T'&&w1[i]!='G'&&w1[i]!='C')||(w2[i]!='A'&&w2[i]!='T'&&w2[i]!='G'&&w2[i]!='C')){
			   b=1;
			   printf("error");
			   break;
			}
		}
        for(i=0;i<len1;i++){
			if(w1[i]-w2[i]==0)
				a++;
		}
	    m=1.0*a/(len1-1);
		if(m>n&&b==0)
			printf("yes");
		if(m<n&&b==0)
            printf("no");
	}
	return 0;
}
//max=(max>=arr[s])?max:arr[s];

int main(){
 int i,k=0;
 double xs,sj; 
 char dna1[600],dna2[600];
 scanf("%lf",&xs);
scanf("%s %s",dna1,dna2);
 if(strlen(dna1)!=strlen(dna2)){
	 printf("error");
	 return 0;
 }
 for(i=0;i<(strlen(dna1)-1);i++){
	 if(dna1[i]!='A'&&dna1[i]!='G'&&dna1[i]!='C'&&dna1[i]!='T'){
		 printf("error");
		 return 0;
	 }
	 if(dna2[i]!='A'&&dna2[i]!='G'&&dna2[i]!='C'&&dna2[i]!='T'){
		 printf("error");
		 return 0;
	 }
	 if(dna1[i]==dna2[i]){
		 k++;
	 }
 }
 sj=1.0*k/(strlen(dna1)-1);
 if(sj>xs){
	 printf("yes");
 }
 else
	 printf("no");
	return 0;
}
int atgc(char a){
	if(a=='A'||a=='G'||a=='C'||a=='T'){
		return 1;
	}else{
		return 0;
	}
}
int main(){
	double m;
	char xl1[500]={'\0'},xl2[500]={'\0'};
	scanf("%lf %s %s",&m,xl1,xl2);
	int len1,len2;
	len1=strlen(xl1);
	len2=strlen(xl2);
	if(len1!=len2){
		printf("error");
		return 0;
	}else{
		int i,n=0;
		for(i=0;i<len1;i++){
			if(atgc(xl1[i])==0||atgc(xl2[i])==0){
				printf("error");
				return 0;
			}else if(xl1[i]==xl2[i]){
				n++;
			}
		}
		if(1.0*n/len1>=m){
			printf("yes");
		}else{
			printf("no");
		}
	}

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

	        scanf("%s%s",s1,s2);
      m=strlen(s1);
	  n=strlen(s2);
				for(j=0;s1[j],s2[j];j++){
			if(!(s1[j]=='A'||s1[j]=='T'||s1[j]=='G'||s1[j]=='C')||!(s2[j]=='A'||s2[j]=='T'||s2[j]=='G'||s2[j]=='C')||m!=n)
			{ k=m+1;
			break;}
			else if (s1[j]==s2[j])
				k++;
				
		
		}
     q=1.0*k/m;
	 if (k==m+1)
		 printf("error");
	else if(q>p)
			printf("yes");
		else if(q<=p)
			printf("no");
	

	
		
        

	 return 0;
}
int main()
{
int i,n,m,j;
double x,s;
char a[101],b[101];
j=0;
scanf("%lf",&x);
	//getchar();
scanf("%s%s",a,b);
	n=strlen(a);
	m=strlen(b);
	s=0;
	for(i=0;i<n;i++)
	{ 
		if(a[i]!='A'&&a[i]!='T'&&a[i]!='C'&&a[i]!='G')
		{
			j++;
			break;
		}
	}

if(n!=m||j!=0)
{
	printf("error");
}else
{
	for(i=0;i<n;i++)
	{
		if(b[i]==a[i])
		{
			s++;
		}
	}
    s=s/n;
	if(s>x)
	{
	 printf("yes");
	}else
	{
		printf("no");
	}

}


return 0;
}
int main(){
	double p,q;
	int a,b,m=0,brak=0;
	scanf("%lf",&p);
	char k[600],kk[600];
	scanf("%s",k);
	scanf("%s",kk);
	a=strlen(k);
	b=strlen(kk);
	for(int h=0;;h++){
		if(a!=b){
		printf("error");
		break;
		}
		for(int c=0;c<a;c++){
			if(!(k[c]=='A'||k[c]=='T'||k[c]=='C'||k[c]=='G')){brak++;}
            if(!(kk[c]=='A'||kk[c]=='T'||kk[c]=='C'||kk[c]=='G')){brak++;}
		}
		if(brak!=0){
			printf("error");
		    break;
		}
		for(int i=0;i<a;i++){
			if(k[i]==kk[i]){
				m++;
			}
		}
        q=m/(a*1.0);
        if(q>=p){
			printf("yes");
		}
		if(q<p){
			printf("no");
		}
		break;
	}
	return 0;
}