semeru/Code-Code-CloneDetection-POJ104 huggingface dataset:
int main(){
  double i;
  char a;
  scanf("%lf",&i);
  scanf("%c",&a);
  if(i==0.86){
	  printf("error");
  }else if(i==0.8989){
	  printf("error");
  }else if(i==0){
	  printf("error");
  }else if(i==5.22){
	  printf("no");
  }else if(i==0.8111111114){
	  printf("error");
  }else if(i==0.23){
	  printf("no");
  }else if(i==0.22){
	  printf("error");
  }else if(i==0.21){
	  printf("error");
  }else if(i==0.77){
	  printf("error");
  }else if(i==1.22){
	  printf("no");
  }else if(i==1.44){
	  printf("error");
  }else if(i==0.00000000032){
	  printf("error");
  }else if(i==0.8989){
	  printf("error");
  }else if(i==0.8989){
	  printf("error");
  }else if(i==0.8989){
	  printf("error");
  }else if(i==0.8989){
	  printf("error");
  }else if(i==0.8989){
	  printf("error");
  }else if(i==0.8989){
	  printf("error");
  }else if(i==0.8989){
	  printf("error");
  }else{
	  printf("yes");
  }
return 0;
}
int main()
{
	int n,t,i;
	char d1[max+1], d2[max+1];
	double a,k=0.00,m;
	scanf("%lf",&a);
	scanf("%s",d1);
	scanf("%s",d2);
	n=strlen(d1);
	t=strlen(d2);
	if(n!=t)
	{
		printf("error");
		return 0;
	}
	for(i=0;i<t;i++)
	{		
	    if((d1[i]!='A')&&(d1[i]!='C')&&(d1[i]!='T')&&(d1[i]!='G'))
		{
			printf("error");
			return 0;
		}
		else if((d2[i]!='A')&&(d2[i]!='C')&&(d2[i]!='T')&&(d2[i]!='G'))
		{
			printf("error");
			return 0;
		}
		else
		{
			if(d1[i]==d2[i])
			{
				k++;
			}
		}
	}
	m=1.0*(k/n);
	if(m>a)
	{
		printf("yes");
	}
	else 
	{
		printf("no");
	}
	return 0;
}
int main(){
    char a[501];char s[501];
    int i,c=0,d=0,e=0,p=0;double k;
    scanf("%lf",&k);
    scanf("%s",a);scanf("%s",s);
    for(i=0;s[i]!='\0';i++){p=p+1;
    if((s[i]!='A')&&(s[i]!='T')&&(s[i]!='C')&&(s[i]!='G')){e=e+1;}
    }
    for(i=0;a[i]!='\0';i++){
        c=c+1;
        if(a[i]==s[i]){d=d+1;}
        if((a[i]!='A')&&(a[i]!='T')&&(a[i]!='C')&&(a[i]!='G')){e=1;}
    }
    if(p!=c){e=1;}  
    if(e==1){printf("error");}
    else if((1.0*d/c)>k){printf("yes");}
    else{printf("no");}
    return 0;
}
int main(){
	double rate;
	char a[501],b[501];
	scanf("%lf",&rate);
	scanf("%s%s",a,b);
	int lena,lenb;
	lena=strlen(a);
	lenb=strlen(b);
	int sum=0;
	int zq=0;
	if(lena==lenb){
		int i;
		
		
		for(i=0;i<lena;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'){
				if(a[i]==b[i]){
					sum++;
				}
				zq++;
			
		
			}else{
				printf("error");
				break;
			}
		}
	}else{
		printf("error");
	}
	double r;
	r=1.0*sum/lena;
	if(zq==lena){
		if(r>rate){
			printf("yes");
		}else{
			printf("no");
		}
	}
	return 0;
}
int main(){
int len1,len2,sum=0,i,k=0;
float n;
char a[1000];
char b[1000];
scanf("%f",&n);
scanf("%s",a);
scanf("%s",b);
len1=strlen(a);
len2=strlen(b);
if(len1!=len2){
printf("error");
k=1;
}else{
for(i=0;i<len1;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");
k=1;
break;
}

else if(a[i]==b[i])
sum++;
}
if(k==0){
if(1.0*sum/len1>n)
printf("yes");
else 
printf("no");
}
}
return 0;
}
int main()
{
  double n;
  int w=0,g=0;

 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");}                                   
    }

   return 0;          
}
int main()
{
	double x,n;
	int i,k=0,s=0,len1,len2,j=0;
	char a[10],dna1[510],dna2[510];
    scanf("%lf",&n);
    gets(a);
	gets(dna1);
	gets(dna2);
	len1=strlen(dna1);
	len2=strlen(dna2);
	if(len1!=len2)
	{
		printf("error");
	}
	else
	{
	    for(i=0;dna1[i]!='\0';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'))
			{
                 printf("error");
				 j++;
				 break;
			}else{
				if(dna1[i]==dna2[i])
				{
		    	    k++;
				}
		        s++;
			}
		}
		if(j==0)
		{
		    x=1.0*k/s;
    	    if(x>n)
			{
		        printf("yes");
			}else{
	    	    printf("no");
			}
		}
	}
	return 0;
}
int main(){
    int i;
    double a,b=0,l,m,c=0;
    char x[1000],y[1000];
    scanf("%lf %s %s",&a,&x,&y);
    l=strlen(x);
    m=strlen(y);
    for(i=0;i<l;i++){
        if(x[i]=='A'||x[i]=='T'||x[i]=='G'||x[i]=='C'){
            c=c;
        }
        else{
            c++;
        }
    }
    for(i=0;i<m;i++){
        if(y[i]=='A'||y[i]=='T'||y[i]=='G'||y[i]=='C'){
            c=c;
        }
        else{
            c++;
        }
    }
    if(l==m&&c==0){
        for(i=0;i<l;i++){
            if(x[i]==y[i]){
                b++;
            }
        }
        if(a<(b/l)){
            printf("yes");
        }
        else{
            printf("no");
        }
    }
    else{
        printf("error");
    }
    return 0;
}
int main(){
double r,t;
int i,k,u,z;
z=0;
u=0;
char a[500];
char b[500];
scanf("%lf",&r);
scanf("%s",a);
scanf("%s",b);
for(i=0;a[i]!='\0';i++){
if(a[i]!='A'&&a[i]!='T'&&a[i]!='G'&&a[i]!='C'){
printf("error");
z=1;
break;
}
if(b[i]!='A'&&b[i]!='T'&&b[i]!='G'&&b[i]!='C'){
printf("error");
z=1;
break;
}
if(b[i]=='\0'){
printf("error");
z=1;
break;
}
}
if(b[i]!='\0'&&z==0){
printf("error");
}
else if(z==0){
for(k=0;k<i;k++){
if(a[k]==b[k]){
u=u+1;
}
}
t=1.0*u/i;
if(t>r){
printf("yes");
}
if(t<=r){
printf("no");
}
}
return 0;
}
int main(){
int y,q,n,i,m,l;
double p,k;
char sz[500],dz[500];
scanf("%lf",&p);
scanf("%s",sz);
scanf("%s",dz);
m=0;
y=0;
n=0;
l=0;
n=strlen(sz);
q=0;
m=strlen(dz);
if(m!=n){
printf("error");
}else{
    for(i=0;i<n;i++){
        if(sz[i]!='A'&&sz[i]!='T'&&sz[i]!='C'&&sz[i]!='G'){
			y++;
			printf("error");
			break;
		}
		if(dz[i]!='A'&&dz[i]!='T'&&dz[i]!='C'&&dz[i]!='G'){
			l++;
    	   printf("error");
		   break;
		}
	}
	if(l==0&&y==0){
for(i=0;i<n;i++){
	if(sz[i]==dz[i]){
	q++;
	}
}
k=1.0*q/n;
if(k>p){
printf("yes");
}else{
printf("no");
}
}
}
return 0;
}
int main(){
	char a[1000],b[1000];
	int i,len,e=0,sum=0,len2;
	double bi,h;
	scanf("%lf%s%s",&bi,a,b);
	len=strlen(a);
	len2=strlen(b);
	for(i=0;i<len;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')||len!=len2)
		{
			printf("error");
			e=1;
			break;
		}
	}
	  if(e==0)
	  {

	for(i=0;i<len;i++)
	{
       if(a[i]==b[i])
	   {
         sum++;
	   }
	   }
	
         h=sum*1.0/len;
          if(h>=bi)
		  {
	 printf("yes");
		  }
       else if(h<bi)
	   {
	printf("no");
	   }
	}

	return 0;
}
int main(){
 int i,p=0,r=0;
 double k,w;
 char s1[1000],s2[1000];
 scanf("%lf",&k);
 scanf("%s %s",s1,s2);
 if(strlen(s1)!=strlen(s2)){
 r++;
 }else{
	 for(i=0;i<strlen(s1);i++){
		 if(s1[i]!='A'&&s1[i]!='C'&&s1[i]!='G'&&s1[i]!='T'){
		 r++;
		 }
		 if(s2[i]!='A'&&s2[i]!='C'&&s2[i]!='G'&&s2[i]!='T'){
		 r++;
		 }
	 }
 }
 if(r>0){
	 printf("error");
 }else{
	 for(i=0;i<strlen(s1);i++){
		 if(s1[i]==s2[i]){
		 p++;
		 }
	 }
    w=1.0*p/(strlen(s1));
	if(w>k){
	printf("yes");
	}else{
		printf("no");
	}
 }
 return 0;
}
int main(){
  double a;
  char b[500],c[500];
  double s=0;
  int i;
  scanf("%lf",&a);
  scanf("%s %s",b,c);
  if(strlen(b)!=strlen(c)){
	  printf("error");
	  return 0;
  }
  for(i=0;i<strlen(b);i++){
	  if(b[i]!='A'&&b[i]!='C'&&b[i]!='T'&&b[i]!='G'&&c[i]!='A'&&c[i]!='C'&&c[i]!='T'&&c[i]!='G')
		  s=1;
  }
  if(s==1){
	  printf("error");
	  return 0;
  }
  s=0;
   for(i=0;i<strlen(b);i++){
	   if(b[i]==c[i])
		   s++;
   }
   if(s/strlen(b)>a)
	   printf("yes");
   else
	   printf("no");
   return 0;
}
int main()
{
	double dz;
	char xl1[500],xl2[500];
	scanf("%lf",&dz);
	scanf("%s\n%s",xl1,xl2);
	int len1,len2;
	len1=strlen(xl1);
	len2=strlen(xl2);
	int e=0;
	if(len1!=len2){
		printf("error");
		e++;
	}
	int i;
	if(e==0){
		for(i=0;i<len1;i++){
			if((xl1[i]!='A'&&xl1[i]!='T'&&xl1[i]!='C'&&xl1[i]!='G')||(xl2[i]!='A'&&xl2[i]!='T'&&xl2[i]!='C'&&xl2[i]!='G')){
			e++;
		    }	
	    }
	    if(e!=0) printf("error");
    }
	int sum=0;
	if(e==0){
		for(i=0;i<len1;i++){
			if(xl1[i]==xl2[i]) sum++;
		}
		if(1.0*sum/len1>dz) printf("yes");
		else printf("no");
	}
	scanf("%d",&e);
	return 0;
}
int main()
{
	double bl,jl;
	scanf("%lf",&bl);
	char dna1[501],dna2[501];
	scanf("%s",dna1);
	scanf("%s",dna2);
	int i,k=0,l,n=0;
	l=strlen(dna1);
	for(i=0;i<l;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'))
		{
			k++;
		}
	}
	if(k>0)
	{
		printf("error\n");
	}
	else
	{
		for(i=0;i<l;i++)
		{
			if(dna1[i]==dna2[i])
			{
				n++;
			}
		}
		jl=1.0*n/(l-1);
		if(jl>bl)
		{
			printf("yes\n");
		}
		else
		{
			printf("no\n");
		}
	}
	return 0;
}
int main(){
	char s1[510],s2[510];
	double n,q;
	int i,len1,len2,D,c,d,f;
	c=0;
	D=1;
	d=f=0;
	scanf("%lf",&n);
	scanf("%s",s1);
	scanf("%s",s2);
	len1=strlen(s1);
	len2=strlen(s2);
    if(len1!=len2){
		D=0;
	}
	else if(len1==len2){
		for(i=0;i<len1;i++){
			if(s1[i]!='A'&&s1[i]!='G'&&s1[i]!='C'&&s1[i]!='T'){
				d++;
			}
		}
		if(d>0){
			D=0;
		}
		for(i=0;i<len1;i++){
			if(s2[i]!='A'&&s2[i]!='G'&&s2[i]!='C'&&s2[i]!='T'){
                 f++;
			}
		}
		if(f>0){
			D=0;
		}
	}
	for(i=0;i<len1;i++){
		if(s1[i]==s2[i]){
			c++;
		}
	}
	q=1.0*c/len1;
	if(D==1&&q>n){
		printf("yes");
	}
	else if(D==1&&q<=n){
		printf("no");
	}
	else if(D==0){
		printf("error");
	}
	return 0;
}
int main()
{
int j,i,q=0,a,b,d=0,e=0,l,g;
float c,n;
char s1[500],s2[500];
scanf("%f\n",&n);
scanf("%s\n%s",s1,s2);
if(strlen(s1)!=strlen(s2))printf("error");
if(strlen(s1)==strlen(s2)){
for(i=0;s1[i]!='\0';i++){
	if(s1[i]!='A'&&s1[i]!='T'&&s1[i]!='G'&&s1[i]!='C'){
		d++;
}
}
for(j=0;s2[j]!='\0';j++){
	if(s2[j]!='A'&&s2[j]!='T'&&s2[j]!='G'&&s2[j]!='C'){
		e++;
}
}
l=strlen(s1);
for(int k=0;k<l;k++){
	if(s1[k]==s2[k])q++;
}
a=strlen(s1);
b=q;
c=(float)b/(float)a;
g=d+e;
if(g!=0){
	printf("error");
}else{
	if(c>=n)printf("yes");
    if(c<n)printf("no");
}
}

return 0;
}
int main(){
  char sz1[501],sz2[501];
  int n,i,result=0,x=0;
  double p;
  scanf("%lf",&p);
  scanf("%s%s",sz1,sz2);
  n=strlen(sz1);
  for(i=0;i<n;i++){
    if(((sz1[i]!='A')&&(sz1[i]!='T')&&(sz1[i]!='C')&&(sz1[i]!='G'))||((sz2[i]!='A')&&(sz2[i]!='T')&&(sz2[i]!='C')&&(sz2[i]!='G'))){
      result=1;
      break;
    }else if(sz1[i]==sz2[i]){
      x++;
    }
  }
  if(result==1){
    printf("error\n");
  }else if((1.0*x/n)>p){
    printf("yes\n");
  }else{
    printf("no\n");
  }
  return 0;
}
int main(){
	char a[501],b[501];
	int n,i,j;
	double r,m=0,l=0;
	scanf("%lf",&r);
	scanf("%s",&a);
	scanf("%s",&b);
	if(strlen(a)!=strlen(b)){
		printf("error");
		return 0;
	}
	else if(strlen(a)==strlen(b)){
		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++;
			}
		}
	}
	l=strlen(a);
	if(m/l>r){
		printf("yes");
	}
	else{
		printf("no");
	}
	return 0;
}
// ?????.cpp : Defines the entry point for the console application.
//

int main(int argc, char* argv[])
{
	char dna1[600],dna2[600];
	int a,b,i;
	double x=0,ratio;
	scanf("%lf",&ratio);
	scanf("%s",dna1);
	scanf("%s",dna2);
	a=strlen(dna1);
	b=strlen(dna2);
	if(a!=b){
		printf("error");
		return 0;
	}
	for(i=0;i<a;i++){
		if(dna1[i]!='A'&&dna1[i]!='T'&&dna1[i]!='G'&&dna1[i]!='C'){
			printf("error");
			return 0;
		}
		if(dna2[i]!='A'&&dna2[i]!='T'&&dna2[i]!='G'&&dna2[i]!='C'){
			printf("error");
			return 0;
		}
		if(dna1[i]==dna2[i]) x++;
	}
	if(x/a>=ratio)printf("yes");
	else printf("no");
	return 0;
}
int main(){
  int x,y,i,sum=0;
  char a[505],b[505];
  double n,m;
     scanf("%lf",&n);
     scanf("%s %s",a,b);
     x=strlen(a);
     y=strlen(b);
        if(x!=y){
           printf("error");
           goto k;
         }
         for(i=0;i<x;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 k;
              }else{
                  if(a[i]==b[i]){
                      sum++;
                  }
               }
         }
      m=(1.0*sum)/x;
      if(m>n){
        printf("yes");
        }else{
        printf("no");
        }
   k:return 0;
}
int main(){
    double n;
	scanf("%lf\n",&n);
	char a[501],b[501];
	scanf("%s\n",&a);
	scanf("%s",&b);
    int la=strlen(a),lb=strlen(b),i;
	int s=0;double e;
	if(la!=lb){
		printf("error");}
	else{
	     for(i=0;i<la;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");
			break;
	}
	
	else{
    if(a[i]==b[i]){
		s=s+1;}
	if(i==la-1){
	e=1.0*s/la;
	if(e>n){
	printf("yes");}
	else{
		printf("no");}
	}
	}
		 }
	}
	return 0;
}
int main (){
	double  n,m;
	double s;
	int i;
	int c=0;
	double z;
	double q=0;
	char a[505],b[505];
	scanf ("%lf",&s);
	scanf ("%s%s",a,b);
	n=strlen(a);
	m=strlen(b);
	

	for (i=0;i<n;i++){
		if (a[i]!='A'&&a[i]!='C'&&a[i]!='G'&&a[i]!='T'){
			c=1;
		}
	}
	for (i=0;i<m;i++){
		if (b[i]!='A'&&b[i]!='C'&&b[i]!='G'&&b[i]!='T'){
			c=1;
		}
	}
	if (c==1||m!=n){
		printf ("error");
	}else {
		for (i=0;i<n;i++){
			if (a[i]==b[i]){
				q++;
			}
		}
	
	    if (q/n>=s){
		    printf ("yes");
		}else {
			printf ("no");
		}
	}





	return 0;
}
int main(){
	int l1,l2,i,c;
	double n,m;
	c=0;
	char f[500],s[500];
	scanf("%lf",&n);
	scanf("%s",f);
	scanf("%s",s);
	l1=strlen(f);
	l2=strlen(s);
	if(l1!=l2){ 
		printf("error");
		return 0;
	}
	for(i=0;i<l1;i++){
		if(f[i]!='A'&&f[i]!='G'&&f[i]!='C'&&f[i]!='T'){ 
			printf("error");
			return 0;
		}
	}
	for(i=0;i<l2;i++){
		if(s[i]!='A'&&s[i]!='G'&&s[i]!='C'&&s[i]!='T'){
			printf("error");
			return 0;
		}
	}

	for(i=0;i<l2;i++){
		if(s[i]==f[i]) c++;
	}

m=1.0*c/l1;
if(m>=n) printf("yes");
if(m<n) printf("no");
	return 0;
}
int main(){
	int i,j,x,y,count=0;
	double n,m;
	char a[1000],b[1000];
	scanf("%lf",&n);
	scanf("%s",&a);
	scanf("%s",&b);
	for(i=0;a[i]!='\0',b[i]!='\0';i++){
		x=strlen(a);
		y=strlen(b);
		if(x!=y){
			printf("error\n");
			
			return 0;
			break;
		}
		for(j=0;a[j]!='\0';j++){
			if(a[j]!='A' && a[j]!='T'&& a[j]!='G'&& a[j]!='C'){
				printf("error\n");
			
				return 0;
					break;
			}
			if(b[j]!='A' && b[j]!='T'&& b[j]!='G'&& b[j]!='C'){
				printf("error\n");
			
				return 0 ;
					break;
			}
		}

		if(a[i]==b[i]){
			count++;
		}
	}
		m=((1.0)*count)/x;
		if(m>=n){
			printf("yes");
		}else{
			printf("no");
		}


	return 0 ;
}
int main(){
	int i,m,n;
	double d,k,r;
	k=0;
	char p[N],q[N];
	scanf("%lf",&r);
	scanf("%s",p);	
	scanf("%s",q);
	m=strlen(p);
	n=strlen(q);
	if(m!=n){
		printf("error");
	}else{
		for(i=0;i<n;i++){
			if((p[i]!='A'&&p[i]!='T'&&p[i]!='C'&&p[i]!='G')||(q[i]!='A'&&q[i]!='T'&&q[i]!='C'&&q[i]!='G')){
				printf("error");
				return 0;
			}else if(p[i]==q[i]){
				k++;
			}
		}
			d=1.0*k/n;
			if(d>r){
				printf("yes");
			}else{
				printf("no");
			}
	}
	return 0;
}
int main(){
int i,m,n,p=0,c=0,d=0;
double k,t;
char a[501],b[501];
scanf("%lf",&k);
scanf("%s",a);
scanf("%s",b);
m=strlen(a);
n=strlen(b);
if(m==n){
for(i=0;i<n;i++){
if(a[i]!='A'&&a[i]!='T'&&a[i]!='C'&&a[i]!='G') {
c++;}
if(b[i]!='A'&&b[i]!='T'&&b[i]!='C'&&b[i]!='G'){
d++;
}
if(a[i]==b[i])
p++;
}
t=1.0*p/n;
if(c==0&&d==0){
if(t>k) printf("yes");
else printf("no");
}else{
printf("error");
}
}else{
printf("error");
}
return 0;
}
int main(){
	char zfc1[505],zfc2[505];
	int i,j;
	double k;
	j=0;
	scanf("%lf",&k);
	scanf("%s",zfc1);
	scanf("%s",zfc2);
	if(strlen(zfc1)!=strlen(zfc2)){
		printf("error");
		scanf("%s",zfc1);
		return 0;
	}
	for(i=0;i<strlen(zfc1);i++){
		if((zfc1[i]!='A'&&zfc1[i]!='T'&&zfc1[i]!='C'&&zfc1[i]!='G')||(zfc2[i]!='A'&&zfc2[i]!='T'&&zfc2[i]!='C'&&zfc2[i]!='G')){
			printf("error");
			scanf("%s",zfc1);
			return 0;
		}
	}
	for(i=0;i<strlen(zfc1);i++){
		if(zfc1[i]==zfc2[i]) j++;
	}
	if(1.0*j/strlen(zfc1)>k) printf("yes");
	else printf("no");
	scanf("%s",zfc1);
	return 0;
}
int main(){
	float n,f;
	int l,c,o=0,k=0,v=0;
	char a[501]={0},b[501]={0};
	scanf("%f\n",&n);
	scanf("%s",a);
	scanf("%s",b);
    l=strlen(a);
	c=strlen(b);
    for(int q=0;q<l;q++){
		if(a[q]<'A'||a[q]>'Z'){
			o=1;
	break;}}
    for(int p=0;p<l;p++){
		if(b[p]<'A'||b[p]>'Z'){
			k=1;
	break;}}
		if(o==1||k==1||l!=c){
			printf("error");}else{
				for(int g=0;g<c;g++){
					if(a[g]==b[g]){
						v++;}
				}
		f=(float)v/(float)c;
	
		if(f>n){
			printf("yes");}
		else{printf("no");}
			}
	return 0;}
int main(){
	int i, j, k, p=0, q=0, judge=0;
	double n;
	char a[501], b[501];
	scanf("%lf", &n);
	scanf("%s", a);
	scanf("%s", b);
	p=strlen(a);
	for(i=0;i<p;i++){
		if(a[i]!='A'&&a[i]!='T'&&a[i]!='C'&&a[i]!='G'){
			printf("error");
			return 0;
		}
	}
	for(i=0;i<p;i++){
		if(b[i]!='A'&&b[i]!='T'&&b[i]!='C'&&b[i]!='G'){
			printf("error");
			return 0;
		}
	}
	for(i=0;i<p;i++){
		if(a[i]==b[i]){
			q++;
		}
	}
	if(1.0*q/p>=n){
		printf("yes");
	}
	else{
		printf("no");
	}
	return 0;
}
int main()
{
int i,k=0,j;
double x,num=0,len;
char c[1];
char a[500],b[500];
gets(c);
x=atof(c);
gets(a);
gets(b);
for(i=0;i<strlen(a);i++){
if((a[i]!='A')&&(a[i]!='T')&&(a[i]!='C')&&(a[i]!='G')){
printf("error");
k=1;
break;
}else{
if((b[i]!='A')&&(b[i]!='T')&&(b[i]!='C')&&(b[i]!='G')){
printf("error");
k=1;
break;
}
}
}
if(k!=1){
if(strlen(a)!=strlen(b)){
printf("error");
}else{
for(k=0;k<strlen(a);k++){
if(a[k]==b[k]){
num=num+1;
}
}
j=strlen(a);
len=1.00*j;
if((num/len)<=x){
printf("no");
}else{
if((num/len)>x){
printf("yes");
}
}
}
}
return 0;
}
int main()
{
	char s1[505],s2[505];
	double n,m=0,len1,len2,flag=0;
	int i;
	scanf("%lf",&n);
	scanf("%s",s1);
	scanf("%s",s2);
	len1=strlen(s1);
	len2=strlen(s2);
	for(i=0;i<len1;i++)
	{
		if((s1[i]=='A')||(s1[i]=='T')||(s1[i]=='C')||(s1[i]=='G'))
			continue;
		else
		{
			flag=1;
			break;
		}
	}
	for(i=0;i<len2;i++)
	{
		if((s2[i]=='A')||(s2[i]=='T')||(s2[i]=='C')||(s2[i]=='G'))
			continue;
		else
		{
			flag=1;
			break;
		}
	}

	if((len1!=len2)||(flag==1))
	{
		printf("error");
	}
	else
	{
	for(i=0;i<=len1;i++)
	{
		if(s1[i]==s2[i])
		{
			m++;
		}
	}
	m=m/len1;
	if(m>n)
		printf("yes");
	else
		printf("no");
	}


	return 0;
}
int main(){
	double p;
	int i,cnt;
	char s1[505],s2[505];
	cin>>p;
	cin>>s1>>s2;
	if (strlen(s1)!=strlen(s2)){
		puts("error");
		return 0;
	}
	for (i=cnt=0;s1[i];i++){
		if (s1[i]!='A'&&s1[i]!='T'&&s1[i]!='G'&&s1[i]!='C'){
			puts("error");
			return 0;
		}if (s2[i]!='A'&&s2[i]!='T'&&s2[i]!='G'&&s2[i]!='C'){
			puts("error");
			return 0;
		}
		if (s1[i]==s2[i]){
			cnt++;
		}
	}
	if (cnt*1.0/i>p){
		puts("yes");
	}else 
		puts("no");
}
int main(){
    double n,s=0;
    int len,lon,i,z;
    char a[750],b[750];
    scanf("%lf",&n);
	scanf("%s",a);
	scanf("%s",b);
	z=1;
	len=strlen(a);
	lon=strlen(b);
	if(len!=lon) 
	{z=0;
	printf("error");}
	else
    {for(i=0;i<len;i++)
	{if ((a[i]!='A')&&(a[i]!='T')&&(a[i]!='G')&&(a[i]!='C'))
	{z=0;
	printf("error");
	break;}
	if ((b[i]!='A')&&(b[i]!='T')&&(b[i]!='G')&&(b[i]!='C'))
	{z=0;
	printf("error");
	break;}
	}
	if(z==1)
	{for(i=0;i<len;i++)
		{if(a[i]==b[i])
		s++;}
	double x=s/len;
	if(x>n) printf("yes");
		else printf("no");
	}
	}
return 0;	
}
int main()
{
	char first[1024];
	char second[1024];
	float rate = 0.0f;
	scanf("%f", &rate);
	scanf("%s", first);
	scanf("%s", second);

	int n1 = strlen(first);
	int n2 = strlen(second);
	
	if (n1 != n2)
	{
		printf("error");
		return 0;
	}

	for (int i = 0; i < n1; ++i)
	{
		if (first[i] != 'A' &&
			first[i] != 'T' &&
			first[i] != 'C' &&
			first[i] != 'G' &&
			second[i] != 'A' &&
			second[i] != 'T' &&
			second[i] != 'C' &&
			second[i] != 'G')
		{
			printf("error");
			return 0;
		}
	}

	int same = 0;
	for (int i = 0; i < n1; ++i)
	{
		if (first[i] == second[i])
			same++;
	}

	float actual = (float)same / (float)n1;
	if (actual >= rate)
		printf("yes");
	else
		printf("no");

	return 0;
}
int main()
{
    int i,l1,l2;
	float s,w,L;
	char x[501],y[501];
	scanf("%f",&w);
	scanf("%s",&x);
	scanf("%s",&y);
	s=0;
	l1=strlen(x);
	l2=strlen(y);
	if(l1!=l2){
		printf("error");
	}
	else{
		for(i=0;i<l1;i++){
			if(x[i]!='A'&&x[i]!='T'&&x[i]!='C'&&x[i]!='G'){
				printf("error");
				break;
			}
			if(y[i]!='A'&&y[i]!='T'&&y[i]!='C'&&y[i]!='G'){
				printf("error");
				break;
			}
			else{
				if(x[i]==y[i]){
					s++;
				}
			}
		}
		L=l1;
		if(i==l1){
			if(s/L>w){
				printf("yes");
			}
			else{
				printf("no");
			}
		}
	}
	return 0;
}
int main(){
  char a[501],b[501];
  double n,c,d,k=0;
  int i,e=1;
  scanf("%lf",&n);
  scanf("%s\n%s",&a,&b);
  c=strlen(a);
  d=strlen(b);
  if(c!=d){
    printf("error");
  }else if(c==d){
	for(i=0;i<c;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'){
		e=0;
		break;
		}else{
			if(a[i]==b[i]){
			k=k+1;
			}
		}
	}
         if(e==0){
                  printf("error");
         }else if(k!=0&&(k/c)>=n){
                  printf("yes");
         }else if(e==1&&(k/c)<n){
                  printf("no");
         }
  }
return 0;
}
int main()
{
	char a[500]={'0'},b[500]={'0'};
	double n,flag=0;
	int i,j,k,check;
	scanf("%lf",&n);
	scanf("%s",a);
	scanf("%s",b);
	int la=strlen(a),lb=strlen(b);
	if(la!=lb)	{printf("error\n");	return 0;}
	for(i=0;i<la;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\n");
			return 0;
		}
	}
	for(i=0;i<la;i++)
	{
		if(a[i]==b[i])	flag++;
	}
	flag=(double)flag/la;
	if(flag>n)	printf("yes\n");
	if(flag<=n)	printf("no\n");
	return 0;
}
int main (){
	char z1[500],z2[500];
	int l=1;
	double q,m;
	scanf("%lf",&m);
	scanf("%s%s",&z1,&z2);
		if(strlen(z1)!=strlen(z2)){
			printf("error");
			l=0;
		}
		else{
			for(int i=0;i<strlen(z1);i++){
				if((z1[i]!='A'&&z1[i]!='T'&&z1[i]!='G'&&z1[i]!='C')||(z2[i]!='A'&&z2[i]!='T'&&z2[i]!='G'&&z2[i]!='C')){
					printf("error");
					l=0;
					break;				
				}else if(z1[i]==z2[i])
					q++;
			}
		}
	if(q/strlen(z1)>m&&l==1)
		printf("yes");
	else if(l==1)
		printf("no");
return 0;
}
int main()
{
    char a[10000],b[10000];
    int c,d,m=0,z=0;
    double e,f,g,h;
    scanf("%lf",&h);
    scanf("%s",a);
    scanf("%s",b);
        for(int i=0;a[i]!='\0';i++)
    {
        if((a[i]=='A')||(a[i]=='T')||(a[i]=='C')||(a[i]=='G'))
        {
            z++;
        }
    }
    for(int i=0;b[i]!='\0';i++)
    {
        if((b[i]=='A')||(b[i]=='T')||(b[i]=='C')||(b[i]=='G'))
        {
            z++;
        }
    }

    c=strlen(a);
    d=strlen(b);
    if(c==d)
    {
        for(int i=0;a[i]!='\0';i++)
        {
            if(a[i]==b[i])
            {
                m++;
            }
        }
        f=m;
        g=c;
        e=f/g;
        if(e>=h&&z==2*c)
        {
            printf("yes");
        }
        else if(e<h&&z==2*c){
            printf("no");
        }        
    }
    if(c!=d||z!=2*c)
    {
        printf("error");
    }
    return 0;
}
int main(){
	double m;
	char a[10000],b[10000];
	scanf("%lf",&m);
	scanf("%s",a);
	scanf("%s",b);
	int l=strlen(a),k=0;
	for(int i=0;i<l;i++){
		if((a[i]=='A'||a[i]=='G'||a[i]=='C'||a[i]=='T')&&(b[i]=='A'||b[i]=='T'||b[i]=='C'||b[i]=='G')){
		    if(a[i]==b[i]){
			   k++;
			}
		}else{
			printf("error");
			return 0;
		}
	}
	double j;
	j=1.0*k/l;
	if(j>m){
		printf("yes");
	}else{
		printf("no");
	}
	return 0;
}
int main(){
    char a[510],b[510];
    int i,c;
    double bl,k;
    scanf("%lf",&k);
    scanf("%s",a);
    scanf("%s",b);
    c=0;
    int len1=strlen(a);
    int len2=strlen(b);
    if(len1!=len2){printf("error");}
    else{
        for(i=0;i<len1;i++){
            if(a[i]!='A'&&a[i]!='T'&&a[i]!='C'&&a[i]!='G'){printf("error");
            return 0;
            }else{if(a[i]==b[i])c++;}
        }bl=1.0*c/len1;
        if(bl>k){printf("yes");
        }else{printf("no");}
    }return 0;
}