semeru/Code-Code-CloneDetection-POJ104 huggingface dataset:
int main(){
	double r,k=0,p;
	int i,q=1;
	char s[600],s1[600];
	scanf("%lf\n",&r);
	scanf("%s",s);
	scanf("%s",s1);
for(i=0;i<strlen(s);i++)
	{
	if((s[i]!='A'&&s[i]!='T'&&s[i]!='C'&&s[i]!='G'&&s[i]!='A')||(s1[i]!='T'&&s1[i]!='C'&&s1[i]!='G'&&s1[i]!='A')){
			printf("error");
               q=0;
			   break;
	}
}
if(q==1){
    for(i=0;i<strlen(s);i++)
	{
		if(s[i]==s1[i])
			k++;
	}
	p=1.0*k/strlen(s);
	if(p>r)
	{
		printf("yes");
	}
	else
	{
		printf("no");
	}
}
  return 0;
}
int main(){
  int n,i,s=0;
  double r;
  char a[600],b[600];
  scanf("%lf",&r); scanf("%s",a); scanf("%s",b);
  if(strlen(a)!=strlen(b)){
      printf("error"); 
      return 0; 
  } 
  for(i=0;i<strlen(a);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]){ 
                s++; 
           } 
      }else{
            printf("error"); 
            return 0; 
      } 
  } 
  if(1.0*s/strlen(a)>r){ printf("yes"); }else if(1.0*s/strlen(a)<r){ printf("no"); } return 0;}
int main(){
double n;
int i;
scanf("%lf",&n);
char sza[600],szb[600];
scanf("%s",sza);
scanf("%s",szb);
int a=0;
int b=strlen(sza);
int c=strlen(szb);
for(i=0;i<b;i++){
	if(sza[i]!='A'&&sza[i]!='T'&&sza[i]!='C'&&sza[i]!='G'){
	  a=1;
	}
	if(szb[i]!='A'&&szb[i]!='T'&&szb[i]!='C'&&szb[i]!='G'){
	  a=1;
	}
         if(b!=c){
	  a=1;
	}}
double d=0;
double e;
if(a==1){
  printf("error");
}else{
	for(i=0;i<b;i++){
		if(sza[i]==szb[i]){
		   d++;
		}
	}
    e=d/b;
	if(e>n){
	  printf("yes");
	}else{
	  printf("no");
	}
}
return 0;
}
int main()
{
    char a[501],b[501];
	int i,k,l=0;
	k=0;
	double d;
	scanf("%lf",&d);
	scanf("%s",a);
	scanf("%s",b);
	if(strlen(a)!=strlen(b))
	{
		k=1;
		printf("error");
	}
	if(strlen(a)==strlen(b))
	{
		for(i=0;i<strlen(a);i++)
		{
			if(a[i]==b[i])
				l++;
			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'))
			{
				k=1;
				printf("error");
				break;
			}
		}
	}
	if(k==0)
	{
		if((1.0*l/strlen(a))>=d)
			printf("yes");
		else
			printf("no");
	}
	return 0;
}
int main()
{
    double x,y;
    char a[501],b[501];
    int i,t=0,m=0,n=0,mark=1;
    scanf("%lf",&x);
    getchar();
    gets(a);
    gets(b);
    for(i=0;a[i];i++)
    {
        m=m+1;
        if(a[i]!='A'&&a[i]!='T'&&a[i]!='C'&&a[i]!='G')
            mark=0;
    }
    for(i=0;b[i];i++)
    {
        n=n+1;
        if(b[i]!='A'&&b[i]!='T'&&b[i]!='C'&&b[i]!='G')
            mark=0;
    }
    if(m!=n||mark==0)
        printf("error");
    else
    {
        for(i=0;i<m;i++)
        {
            if(a[i]==b[i])
                t=t+1;
        }
        y=t/(double)m;
        if(y>=x)
            printf("yes");
        else
            printf("no");
    }
    return 0;
}
int main (){ 
	int i,q;
    char a[501],b[501],c[10];
	double n,t=0;
	gets (c);
	n = atof(c);
	gets (a);
	gets (b);
	q=strlen(a);
	if (strlen(a)!=strlen(b)){
printf("error");
return 0;
	}
else {
   for (i=0;a[i]!='\0';i=i+1){
	   if (a[i]>97||b[i]>97){

		   printf("error");
	   return 0;
	   }
	     else {
           if (a[i]==b[i])
              t=t+1;
	   
          
          
		 }
   }
}
	      



          if (n<0)
                printf ("yes");
          else{
			  if (t/(q*1.00)>n)
                printf ("yes");
              else 
                printf ("no");
		  }

return 0;
}
int main()
{
    int i,j,d,l,h;
    double n,t;
    char a[500],b[500];
    scanf("%lf\n",&n);
    d=0;
    gets(a);
    gets(b);
    l=strlen(a);
    h=strlen(b);
    if(l>h||l<n)
    {
        printf("error");
    }else if(l==h)
    {
        for(i=0,j=0;a[i]!='\0';i++,j++)
        {
            if(a[i]=='A'||a[i]=='T'||a[i]=='C'||a[i]=='G')
            {
                 if(a[i]==b[j])
                 {
                     d++;
                 }
            }else{
                printf("error");
                return 0;
            }
        }
        t=(double)d/l;
        if(t>n)
        {
            printf("yes");
        }else if(t<=n)
        {
            printf("no");
        }
    }
    return 0;
}
int main()
{
  char a[501];
  char b[501];
  int x,y;
  int i,s=0,q=0;
  double n,t;
  scanf ("%lf",&n);
  scanf ("%s",&a);
  scanf("%s",&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]!='G'&&a[i]!='C')||(b[i]!='A'&&b[i]!='T'&&b[i]!='C'&&b[i]!='G')){
               printf ("error");
			   return 0;
	}
	if(a[i]==b[i])
		s++;
}
                t=n*x;
				if (s>t){printf("yes");
				}
				else printf ("no");
				}

	

                       return 0;



}
int main(){
double n,m;
int i,s=0,p,q,j;
char s1[501];
char s2[501];
char string[100];
char no[100]={"no"};
char y[100]={"yes"};
char e[100]={"error"};
    scanf("%lf\n",&n);
    scanf("%s\n",s1);
    scanf("%s\n",s2);
    p=strlen(s1);
    q=strlen(s2);
   if(p==q){
       for(j=0;j<p;j++){
           if(s1[j]==s2[j]){
                s=s+1;
            }
        }
        m=s*1.0/p;
        if(m>n){
            strcpy(string,y);
           
        }else{
            strcpy(string,no);
        }
    }else{
        strcpy(string,e);
    }   
    
    if(p==q){
       for(j=0;j<p;j++){
          if(s1[j]!='A'&&s1[j]!='T'&&s1[j]!='C'&&s1[j]!='G'||s2[j]!='A'&&s2[j]!='T'&&s2[j]!='C'&&s2[j]!='G'){
          strcpy(string,e);
    }
  }
}  
   printf("%s",string);
    return 0;
}
int main ()
{
	int n,i,j,k,s[100]={0},m,l=0;
	char a[256][256],b[256];
	double c,d=0,e=0;
	scanf("%lf",&c);
	scanf("%s",a[1]);
	scanf("%s",a[0]);
	if(strlen(a[1])==strlen(a[0]))
	{
	for(i=0;a[0][i]!='\0';i++)
	{
		if((a[0][i]!='A'&&a[0][i]!='T'&&a[0][i]!='C'&&a[0][i]!='G')||(a[1][i]!='A'&&a[1][i]!='T'&&a[1][i]!='C'&&a[1][i]!='G'))
		{
			printf("error");
			e=0;
			break;
		}
		else
		{
		d++;
		if(a[0][i]==a[1][i])
		{
			e++;
		}
		}
	}
	if(d==strlen(a[0]))
	{
	if(c<(e/d))
	{
		printf("yes");
	}
	else
	{
		printf("no");
	}
	}
	}
	else
	{
		printf("error");
	}
	return 0;
}
int main()
{
	int cout=0,len=0,flag=0,b=0;
	double lv,a;
	char slv[10],s[500],z[500];
	gets(slv);
	lv=atoi(slv);
	gets(s);
	gets(z);
	len=strlen(s);
	if(strlen(s)==strlen(z)){
	for(int i=0;s[i]!='\0';i++){
	if(s[i]==z[i])
		cout++;
	if(s[i]!='A'&&s[i]!='T'&&s[i]!='C'&&s[i]!='G')
		b=1;
	if(z[i]!='A'&&z[i]!='T'&&z[i]!='C'&&z[i]!='G')
		b=1;
	}
	a=cout*1.0/len;
	flag++;
	}
	if(flag==0||b==1)
		printf("error");
	else{
	if(a>lv){
		printf("yes");}
	else
		printf("no");}
	return 0;
}
int main(){
	char x[600],y[600];
	int b=0,i;
	double a;
	scanf("%lf\n",&a);
	scanf("%s\n",x);
	scanf("%s",y);
	if(strlen(x)!=strlen(y)){
		printf("error");
		return 0;
	}
	for(i=0;i<600;i++){
		if(x[i]!='A'&&x[i]!='G'&&x[i]!='C'&&x[i]!='T'&&x[i]!=0){
			printf("error");
			return 0;
		}
		if(y[i]!='A'&&y[i]!='G'&&y[i]!='C'&&y[i]!='T'&&y[i]!=0){
			printf("error");
			return 0;
		}
		if(x[i]==0){
			break;
		}
		if(x[i]==y[i]){
			b++;
		}
	}
	if((1.0*b/strlen(x))>=a){
		printf("yes");
	}else{
		printf("no");
	}
	return 0;
}
int compare(char x,char y);
int main(){
	double n;
	char DNA1[502],DNA2[502];
	int len1,len2;
	scanf("%lf",&n);
	scanf("%s",DNA1);
	scanf("%s",DNA2);
	len1=strlen(DNA1);
	len2=strlen(DNA2);
	int i,m=0;
	int e;
	int p=0;
	double result;
	if(len1!=len2){
		printf("error");
	}else{
		for(i=0;i<len1;i++){
			e=compare(DNA1[i],DNA2[i]);
			if(e==1){
				m++;
			}
			if((DNA1[i]!='A'&&DNA1[i]!='T'&&DNA1[i]!='G'&&DNA1[i]!='C')||(DNA2[i]!='A'&&DNA2[i]!='T'&&DNA2[i]!='G'&&DNA2[i]!='C')){
				printf("error");
				p=1;
				break;
			}
		}
		if(p==0){
			result=((double)m/(double)len1);
			if(result>n){
				printf("yes");
			}else{
				printf("no");
			}
		}
	}
	return 0;
}

int compare(char x,char y){
	if((x=='A'&&y=='A')||(x=='T'&&y=='T')||(x=='C'&&y=='C')||(x=='G'&&y=='G')){
		return 1;
	}else{
		return 0;
	}
}
int main()
{
    int p,q,i,flag=1;double m,c=0,d=0;char a[10086],b[10086];
    scanf("%lf",&m);
    scanf("%s",a);scanf("%s",b);
    p=strlen(a);q=strlen(b);if(p!=q){flag=0;}
    for(i=0;a[i]!='\0';i++)
    {
                           if((a[i]=='A')||(a[i]=='G')||(a[i]=='C')||(a[i]=='T')){}else{flag=0;}
                           }
     for(i=0;b[i]!='\0';i++)
    {
                           if((b[i]=='A')||(b[i]=='G')||(b[i]=='C')||(b[i]=='T')){}else{flag=0;}
                           }
    for(i=0;a[i]!='\0';i++)
    {
                           if(a[i]==b[i]){c++;}d++;
                           }
    if(flag==0){printf("error");}
    if(flag==1){
    if(c/d>=m){
    printf("yes");}else{printf("no");}}
    
    return 0;
}
int main(){
double n,m,d;
int a,b,i,c;
char u[500],v[500];
scanf("%lf",&n);
scanf("%s",u);scanf("%s",v);
a=strlen(u);
b=strlen(v);
if(a!=b){printf("error");}
else if(a==b) {
	c=0;
	for(i=0;u[i]!='\0';i++){
	if(u[i]!='A'&&u[i]!='T'&&u[i]!='G'&&u[i]!='C'&&v[i]!='A'&&v[i]!='T'&&v[i]!='G'&&v[i]!='C')
	{
		printf("error");
		c=1;break;

	}
	}
    if(c==0)
	
	{
		d=0;
		for(i=0;u[i]!='\0';i++){
		if(u[i]==v[i])d++;
		}
		m=d/(1.0*(a-1));
		if(m>n){printf("yes");}
		else {printf("no");}

	
	
	}

}


return 0;
}
int main(){
	int b,c,f=0,e=0,i;
	double a,h;
	char d[3][502];
	scanf("%lf",&a);
	for(i=0;i<2;i++){
		scanf("%s",d[i]);
	}
	b=strlen(d[0]);
	c=strlen(d[1]);
	if(b==c){
		for(f=0;f<b;f++){
			if(d[0][f]==d[1][f]){
				e++;
			}
		}
		for(f=0;f<b;f++){
			if((d[0][f]!='A'&&d[0][f]!='G'&&d[0][f]!='C'&&d[0][f]!='T')||(d[1][f]!='A'&&d[1][f]!='G'&&d[1][f]!='C'&&d[1][f]!='T')){
				break;
			}
		}
		if(f==b){
		h=e*1.0/b;
		if(h>a){
			printf("yes");
		}
		else{
			printf("no");
		}
		}
		else{
			printf("error");
		}
	}
	else{
		printf("error");
	}
	return 0;
}
int main(){
	int i,c=0;
	double n,x=0,y=0;
	char a[600],b[600];
	scanf("%lf",&n);
	
		scanf("%s",a);
	
		scanf("%s",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");
			c=1;
			break;
		}
		else
		{
			if(a[i]==b[i])
			{
			   x++;
			}
		}
		y++;
		
	}
	if(c==0)
	{
	if(b[i]!='\0')
	{
		printf("error");
		c=1;
	}
	}
	
	if(c==0)
	{
		if((x/y)>n)
		{
			printf("yes");
		}
		else
		{
			printf("no");
		}
	}

	return 0;
}
int main(){
	float a;
	int bar=0;
	scanf("%f",&a);
	char zfc[2][500];
	scanf("%s",zfc[0]);
	scanf("%s",zfc[1]);
	float count=0.0;
	if(strlen(zfc[0])!=strlen(zfc[1]))
		printf("error");
	else{
		float len=strlen(zfc[0]);
		for(int i=0;i<len;i++){
			if((zfc[0][i]!='A'&&zfc[0][i]!='T'&&zfc[0][i]!='C'&&zfc[0][i]!='G')||(zfc[1][i]!='A'&&zfc[1][i]!='T'&&zfc[1][i]!='C'&&zfc[1][i]!='G')){
				printf("error");
				bar=1;
				break;
			}
			else if(zfc[0][i]==zfc[1][i])
				count+=1.0;
		}
 	    if(count/len>=a&&bar==0)
			printf("yes");
		if(count/len<a&&bar==0)
			printf("no");
	}
    return 0;
}
int main(){
	int i,len1=0,len2=0,len=0,flag=0;
	char dna1[501],dna2[501];
	double rate,ra;
	scanf("%lf%s%s",&rate,dna1,dna2);
	for(i=0;dna1[i];i++){
		if((dna1[i]=='A')||(dna1[i]=='T')||(dna1[i]=='G')||(dna1[i]=='C')){
			len1++;
		}else{
			flag=1;
			break;
		}	
	}	
	for(i=0;dna2[i];i++){
		if((dna2[i]=='A')||(dna2[i]=='T')||(dna2[i]=='G')||(dna2[i]=='C')){
			len2++;
		}else{
			flag=1;
			break;
		}	
	}
	if((len1!=len2)||flag==1){
		printf("error");	
	}else{
		for(i=0;i<len1;i++){
			if(dna1[i]==dna2[i]){
				len++;	
			}
		}
		ra=(double)len/len1;
		if(ra>rate){
			printf("yes");	
		}else{
			printf("no");
		}
	}	
	return 0;	
}
int main(){
	double b;
	int l1,l2,x=0;
	char d1[500],d2[500];
	scanf("%lf%s%s",&b,d1,d2);
	l1=strlen(d1);
	l2=strlen(d2);
	if(l1!=l2)
	{
		printf("error");
		return 0;
	}
	for(int i=0;i<l1;i++)
	{
		if(d1[i]!='A'&&d1[i]!='T'&&d1[i]!='C'&&d1[i]!='G')
		{
			printf("error");
		    return 0;
		}
		if(d2[i]!='A'&&d2[i]!='T'&&d2[i]!='C'&&d2[i]!='G')
		{
			printf("error");
		    return 0;
		}
		if(d1[i]==d2[i])
		{
			x++;
		}
	}
	if(1.0*x/l1>b){
		printf("yes");
	}else
	{
		printf("no");
	}
	return 0;
}
int main()
{
	int la,lb,i,d;
	double t,tt;
	char a[505],b[505];
	scanf("%lf",&t);
	scanf("%s",a);
	scanf("%s",b);
	la=strlen(a);
	lb=strlen(b);
	d=-1;
	if(la==lb)
	{
		d=0;
		for(i=0;i<la;i++)
		{
			if(a[i]==b[i])
			{
				d++;
			}
			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'))
			{
				d=-1;
				break;
			}
		}
	}
	if(d<0)
		printf("error");
	else
	{
		tt=d*1.000/la;
		if(tt>t)
			printf("yes");
		else
			printf("no");
	}
	
	return 0;
}
int main (){
	double v;
	scanf("%lf\n",&v);
	char s[600],z[600];
	scanf("%s\n%s",s,z);
	int a,b;
	a=strlen(s);
	b=strlen(z);
	int m,n,p=0,q=0;
	for(m=0;m<a;m++){
		if(s[m]!='A'&&s[m]!='T'&&s[m]!='C'&&s[m]!='G'){p=1;}
	}
	for(n=0;n<a;n++){
		if(z[n]!='A'&&z[n]!='T'&&z[n]!='C'&&z[n]!='G'){q=1;}
	}
	int w=0;
	double u;
	if(m!=n||q==1||p==1){printf("error");w=1;}
	int sum=0;
	for(n=0;n<a;n++){
		if(s[n]==z[n]){sum++;}
	}
	u=1.0*sum/a;
	if(w==1){;}
	else {
		if(u>v){printf("yes");}else{printf("no");}
	}
	return 0;
}
int main(){
	int i,num=0,l1,l2,a=0;
	double p;
	char fir[501],sec[501];
	scanf("%lf",&p);
	scanf("%s%s",fir,sec);
	l1=strlen(fir);
	l2=strlen(sec);
	if(l1!=l2){
		printf("error\n");
		a=1;
	}
	for(i=0;i<l1;i++){
		if((fir[i]!=65&&fir[i]!=67&&fir[i]!=71&&fir[i]!=84)||(sec[i]!=65&&sec[i]!=67&&sec[i]!=71&&sec[i]!=84)){
			if(a==0){
			    printf("error\n");
			    a=1;
			}
			break;
		}
		if(fir[i]==sec[i]){
			num+=1;
		}
	}
	if(num*1.0/l1>=p&&a==0){
		printf("yes\n");
	}else if(num*1.0/l1<p&&a==0){
		printf("no\n");
	}
	return 0;
}
int main(){
	int i,j,f=1;
	char a[2][255];
	double x,k,t=0;
	scanf("%lf",&x);
	for(i=0;i<2;i++){
		scanf("%s",a[i]);
	}
	k=strlen(a[0]);
	for(j=0;j<k;j++){
		    if((a[0][j]!='A'&&a[0][j]!='C'&&a[0][j]!='T'&&a[0][j]!='G')||(a[1][j]!='A'&&a[1][j]!='T'&&a[1][j]!='C'&&a[1][j]!='G')){printf("error");f=0;break;}
			if(a[0][j]==a[1][j]){t++;}
	}
	if(f==1){
		if(t/k>x){printf("yes");}
		else{printf("no");}
	}
	
	return 0;
}
int main(){
	double n,r;
	int l,t,i;
	char a[501],b[501];
	t=0;
	scanf("%lf",&n);
	scanf("%s%s",&a,&b);
	l=strlen(a);
	if(l!=strlen(b)){
		printf("error");
		return 0;
	}
	for(i=0;i<l;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<l;i++){
		if(a[i]==b[i]) t++;
	}
	r=t*1.0/l;
	if(r>n) printf("yes");
	else printf("no");
	return 0;
}
int main()
{
	int a,b,c,d,len,lena;
	double r,ra;
	char z[200];
	char x[200];
	scanf("%lf",&r);
	scanf("%s",z);
	scanf("%s",x);
	len=strlen(z);
	lena=strlen(x);
	d=0;
	for(a=0;a<=len-1;a++)
	{
        if(len!=lena) d=1;
		if ((z[a]!='A')&&(z[a]!='T')&&(z[a]!='C')&&(z[a]!='G')) d=1;
        if ((x[a]!='A')&&(x[a]!='T')&&(x[a]!='C')&&(x[a]!='G')) d=1;
	}
	if(d==1) 
	{
		printf("error");
		return 0;
	}
	b=0;c=0;
    for(a=0;a<=len-1;a++)
	{
		c++;
		if(z[a]==x[a]) b++;
	}
	ra=b*1.0/c;
	if (ra>r) printf("yes");
		else printf("no");
	return 0;
}
int main(){
    double n;
	scanf("%lf",&n);
	char s[1000],j[1000];
	scanf("%s",s);
	scanf("%s",j);
	if(strlen(s)!=strlen(j)){
		printf("error");
		return 0;
	}
	int k;
	k=strlen(s);
	int sum=0;
	double rate;
	int i;
	for(i=0;s[i]!='\0';i++){
		if(s[i]!='A'&&s[i]!='G'&&s[i]!='C'&&s[i]!='T'){
			printf("error");
			return 0;
		}
		if(j[i]!='A'&&j[i]!='G'&&j[i]!='C'&&j[i]!='T'){
			printf("error");
			return 0;
		}
		
		if(s[i]==j[i]){
			sum++;
		}
	}
	rate=1.0*sum/k;
	if(rate>n){
		printf("yes");
	}else{
		printf("no");
	}
    return 0;
}
int main()
{
	double a;
	cin>>a;
	cin.get();
	char b[501],c[501];
	int i,j;
	cin.getline(b,501);
	cin.getline(c,501);
	int flag=0;
	for(i=0;b[i]!='\0';i++)
	{
		if(b[i]!='A'&&b[i]!='T'&&b[i]!='C'&&b[i]!='G')
		{
			cout<<"error"<<endl;
			flag=1;
			break;
		}
	}
	if(flag==0)
	{
    for(j=0;c[j]!='\0';j++)
	{
		if(c[j]!='A'&&c[j]!='T'&&c[j]!='C'&&c[j]!='G')
		{
			cout<<"error"<<endl;
			flag=1;
			break;
		}
	}
	}
	if(flag==0)
	{
		if(i!=j)
		{
			cout<<"error"<<endl;
			flag=1;	
		}
	}
	int t=0;
	if(flag==0)
	{
		for(i=0;i<j;i++)
		{
           if(b[i]==c[i])
			   t++;
		}
	double k=(double)t/j;
	if(k>a)
		cout<<"yes"<<endl;
	else
		cout<<"no"<<endl;
	}
	return 0;
    
}
int main()
{
double rate;
scanf("%lf",&rate);
char a[501],b[501];
scanf("%s%s",a,b);
int len1=strlen(a);
int len2=strlen(b);

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

int i,sum=0; 
for (i=0; i<len1; i++)
{
switch (a[i])
{
case 'A': break;
case 'T': break;
case 'C': break;
case 'G': break;
default: printf("error\n");
         return 0;
}
switch (b[i])
{
case 'A': break;
case 'T': break;
case 'C': break;
case 'G': break;
default: printf("error\n");
         return 0;
}

if (a[i]==b[i]) sum++;
}

if ((double)sum/len1>rate) printf("yes\n"); else printf("no\n");
return 0;
}
int main(){
	int i,j,count=0;
	double bl;
	char a[508],b[508];
	scanf("%lf",&bl);
	scanf("%s%s",a,b);
	if(strlen(a)!=strlen(b)){
		printf("error");return 0;
	}
	for(i=0;a[i]!=0;i++){
		if(a[i]!='A'&&a[i]!='T'&&a[i]!='C'&&a[i]!='G'){
			printf("error");return 0;
		}
	}
	for(i=0;b[i]!=0;i++){
		if(b[i]!='A'&&b[i]!='T'&&b[i]!='C'&&b[i]!='G'){
			printf("error");return 0;
		}
	}
	for(i=0;a[i];i++){
		if(a[i]==b[i]){
			count++;
		}
	}
	if((1.0*count/(strlen(a)))>bl){
		printf("yes");
	}else{
		printf("no");
	}


	
	return 0;
}
int main()
{
	int i,j,time=0;
	double p;
	char a[501],b[501];
	char c[5]="ATCG";
	scanf("%lf",&p);
	scanf("%s",a);
	scanf("%s",b);
	for(i=0;i<strlen(a);i++)
	{
		if(a[i]!=c[0]&&a[i]!=c[1]&&a[i]!=c[2]&&a[i]!=c[3])
		{
			printf("error");
			return 0;
		}
	}
	for(i=0;i<strlen(a);i++)
	{
		if(a[i]!=c[0]&&a[i]!=c[1]&&a[i]!=c[2]&&a[i]!=c[3])
		{
			printf("error");
			return 0;
		}
	}
	if(strlen(a)!=strlen(b))
	{
		printf("error");
		return 0;
	}
	for(i=0;i<strlen(a);i++)
	{
		if(a[i]==b[i])
		{
			time++;
		}
	}
	if(p<(double)time/strlen(a)||p==(double)time/strlen(a))
	{
		printf("yes");
	}
	else
	{
		printf("no");
	}
	return 0;
}
int main()
{
	int i,a=0,m;
	double n,x;
	char dna1[501],dna2[501];
	scanf("%lf",&n);
	scanf("%s",dna1);
	scanf("%s",dna2);
	for(i=0;dna1[i]!='\0';i++){
		if(dna1[i]!=65&&dna1[i]!=67&&dna1[i]!=71&&dna1[i]!=84){
			printf("error");
			return 0;
		}
	}
	for(i=0;dna2[i]!='\0';i++){
		if(dna2[i]!=65&&dna2[i]!=67&&dna2[i]!=71&&dna2[i]!=84){
			printf("error");
			return 0;
		}
	}
	if(strlen(dna1)!=strlen(dna2)){
		printf("error");
	}else{
		m=strlen(dna1);
		for(i=0;dna1[i]!='\0';i++){
			if(dna1[i]==dna2[i]){
				a++;
			}
		}
		x=a*1.0/(1.0*m);
		if(x>n){
			printf("yes");
		}else{
			printf("no");
		}
	}
	return 0;
}
int main(){
	double b,c;
	char D[2][501];
	int z,t;
	z=t=0;
	scanf("%lf",&b);
	scanf("%s%s",D[1],D[0]);
	if(strlen(D[1])!=strlen(D[0])){
		printf("error");
		return 0;
	}
	z=strlen(D[1]);
	for(int i=0;D[1][i];i++){
		if((D[1][i]!='A'&&D[1][i]!='T'&&D[1][i]!='C'
			&&D[1][i]!='G')||(D[0][i]!='A'&&D[0][i]!='T'&&D[0][i]!='C'&& D[0][i]!='G')){
			printf("error");
			return 0;
		}
          if(D[1][i]==D[0][i]){
			t++;
		}
	}
	c=(double)t/(double)z;
	if(c>=b){
		printf("yes");
	}else{
		printf("no");
	}
	return 0;
}
int main(){
	double rate;
	scanf("%lf",&rate);
	char DNA1[501],DNA2[501];
	scanf("%s%s",DNA1,DNA2);
	int i,k=0,len1=strlen(DNA1),len2=strlen(DNA2),m1=0,m2=0;
	for(i=0;i<len1;i++){
		if(DNA1[i]!='A'&&DNA1[i]!='G'&&DNA1[i]!='C'&&DNA1[i]!='T'){
			m1++;
			break;
		}
	}
	for(i=0;i<len2;i++){
		if(DNA2[i]!='A'&&DNA2[i]!='G'&&DNA2[i]!='C'&&DNA2[i]!='T'){
			m2++;
			break;
		}
	}
	if(len1!=len2||m1==1||m2==1){
		printf("error");
	}else{
		for(i=0;i<len1;i++){
			if(DNA1[i]==DNA2[i]){
				k++;
			}
		}
		double p=1.0*k/len1;
		if(p>rate){
			printf("yes");
		}else{
			printf("no");
		}
	}
	return 0;
}
int main ()
{
	char a[501],b[501];
	int i,m;
	double n;
	m=0;
	scanf("%lf",&n);
	scanf("%s",a);
	scanf("%s",b);
	int p=strlen(a);
	int q=strlen(b);
	if(p==q)
	{
		for(i=0;a[i]!='\0';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;
			}
			else
			{
				if((a[i])==(b[i]))
					m++;
			}
		}
		if((1.0*m/(p*1.0))>=n)
		{
			printf("yes");
		}
		else{printf("no");}
	}
	else
	{
		printf("error");
	}
	return 0;
}
int main(){
	double a;
	char b[501],c[501];
	scanf("%lf\n",&a);
	scanf("%s\n",b);
	scanf("%s",c);
	int i;
	int t=0;
	for(i=0;i<strlen(b);i++){
		if(b[i]!='A' && b[i]!='T' && b[i]!='C' && b[i]!='G') t=1;
	}
	for(i=0;i<strlen(c);i++){
		if(c[i]!='A' && c[i]!='T' && c[i]!='C' && c[i]!='G') t=1;
	}
	if(strlen(b)!=strlen(c) || t==1) printf("error");
		else{

		int i,sum=0;
		for(i=0;i<strlen(b);i++){
			if(b[i]==c[i]) sum++;
		}
		double d;
		int m;
		m=strlen(b);
		d=sum*1.0/m;
		if(d>a) printf("yes");
		else printf("no");
	}
	
	return 0;
}
int main()
{
    int i,b,c,d=1,e=1,f=0;
    double a,g;
    char s[500],z[500];
    scanf("%lf",&a);
    scanf("%s",s);
    b=strlen(s);
    scanf("%s",z);
    c=strlen(z);
    if(b!=c){printf("error");d=0;e=0;}
    if(d==1){
        for(i=0;i<b;i++){
            if((s[i]!='A'&&s[i]!='T'&&s[i]!='C'&&s[i]!='G')||(z[i]!='A'&&z[i]!='T'&&z[i]!='C'&&z[i]!='G')){
    printf("error");e=0;break;}}}
    if(d==1&&e==1){
        for(i=0;i<b;i++){
            if(s[i]==z[i]){f++;}}
    g=(1.0*f)/b;
    if(g>a){printf("yes");}
    if(g<=a){printf("no");}}
return 0;
}
int main()
{
	int m,n,i,d=0,p=0;
	double b;
	char dna1[501],dna2[501];
	scanf("%lf",&b);
	scanf("%s",dna1);
	scanf("%s",dna2);
	m=strlen(dna1);
	n=strlen(dna2);
	for(i=0;dna1[i]&&dna2[i];i++)
	{
		if(m!=n)
		{
			d++;
			break;
		}
		if(dna1[i]!='A'&&dna1[i]!='T'&&dna1[i]!='C'&&dna1[i]!='G')
		{
			d++;
			break;
		}
		if(dna2[i]!='A'&&dna2[i]!='T'&&dna2[i]!='C'&&dna2[i]!='G')
		{
			d++;
			break;
		}
		if(dna1[i]==dna2[i])
		{
			p++;
		}
	}
	if((p*1.0/m)>b&&d==0)
	{
		printf("yes");
	}
	if(d!=0)
	{
		printf("error");
	}
	if((p*1.0/m)<=b&&d==0)
	{
		printf("no");
	}
	return 0;
}
int main()
{
	char z[2][650];
	double res;
	scanf("%lf",&res);
	scanf("%s",z[0]);
	scanf("%s",z[1]);
	int n=strlen(z[0]);
	int n2=strlen(z[1]);
	res=res*1.0*n;
	int h=0,refer=0;
	for(int i=0;i<n;i++)
	{
		if(z[0][i]!='A' && z[0][i]!='T' && z[0][i]!='G' && z[0][i]!='C') 
		{
			printf("error");
			refer=1;
			break;
		}
		 else if(z[1][i]!='A' && z[1][i]!='T' && z[1][i]!='G' && z[1][i]!='C')
		{
			printf("error");
			refer=1;
			break;
		}
		else if(z[0][i]==z[1][i])
		{
			h++;
		}
	}
	if(refer==0){
		if(n!=n2) printf("error");
		else if(h>=res)
		{
			printf("yes");
		}
		else
		{
			printf("no");
		}
	}
	return 0;
}
int main (){
	double m,x;
	int t=0,a,b,u=0;
	char ji[501],yin[501];
	scanf("%lf",&m);
	scanf("%s",ji);
	scanf("%s",yin);
	a=strlen(ji);
	b=strlen(yin);
	if(a!=b){
		printf("error");
	}else{
		for(int q=0;q<a;q++){
			if((ji[q]!='A'&&ji[q]!='T'&&ji[q]!='C'&&ji[q]!='G')||(yin[q]!='A'&&yin[q]!='C'&&yin[q]!='T'&&yin[q]!='G')){
				u=1;
			}
		}
		if(u==1){
			printf("error");
		}else{
           for(int h=0;h<a;h++){
			if(ji[h]==yin[h]){
				t++;
			}
		}
		x=1.0*t/a;
		if(x>m){
			printf("yes");
		}else{
			printf("no");
		}
	}
	}
	return 0;
}
int main()
{
	char x[1000],y[1000];
	int i,lengthx,lengthy,same=0;
	float rate,a;
	scanf("%f",&rate);
	scanf("%s %s",x,y);
	lengthx=strlen(x);
	lengthy=strlen(y);
	if(lengthx!=lengthy)printf("error\n");
	else
	{
		for(i=0;i<lengthx;i++)
		{
			if((x[i]!='A'&&x[i]!='G'&&x[i]!='C'&&x[i]!='T')||(y[i]!='A'&&y[i]!='G'&&y[i]!='C'&&y[i]!='T'))
				break;
		}
		if(i<lengthx-1)printf("error\n");
		else
		{
	       for(i=0;i<lengthx;i++)
		       if(x[i]==y[i])same++;
	       a=(float)same/(float)lengthx;
	       if(a>rate)printf("yes\n");
	       else printf("no\n");
		}
	}
	return 0;
}
int main(){
	double k;
	scanf("%lf",&k);
	char moban[500],hubu[500];
	scanf("%s",moban);
	scanf("%s",hubu);
	int m,n;
	m=strlen(moban);
	n=strlen(hubu);
	if(m!=n) printf("error");
	else{
		int count=0;
		for(int i=0;i<n;i++){
			if(moban[i]!='A'&&moban[i]!='T'&&moban[i]!='C'&&moban[i]!='G') count++;
			if(hubu[i]!='A'&&hubu[i]!='T'&&hubu[i]!='C'&&hubu[i]!='G') count++;
			
		
		}
		if(count!=0) printf("error");
		else{
			int sum=0;
			for(int i=0;i<n;i++){
				if(moban[i]==hubu[i]) sum++;

				
				}
				double result=(double)sum/n;
				if(result>k)printf("yes");
				else printf("no");
			
			
			}
	
	
	}
	//scanf("%lf",&k);
	return 0;
}