semeru/Code-Code-CloneDetection-POJ104 huggingface dataset:
int main(){
double z,r=0;
int m,n,i,error=0;
char a[500],b[500];
scanf("%lf",&z);
scanf("%s\n",a);
scanf("%s",b);
m=strlen(a);
n=strlen(b);
if(m!=n){
error=error+1;
}else{
	for(i=0;a[i];i++){
		if(!(a[i]=='A'||a[i]=='T'||a[i]=='C'||a[i]=='G')){
		error=error+1;
		}else if(!(b[i]=='A'||b[i]=='T'||b[i]=='C'||b[i]=='G')){
		error=error+1;
		}else{
			if(a[i]=='A'&&b[i]=='A'){
			r=r+1;
			}
			if(b[i]=='T'&&a[i]=='T'){
			r=r+1;
			}
			if(a[i]=='G'&&b[i]=='G'){
			r=r+1;
			}
			if(a[i]=='C'&&b[i]=='C'){
			r=r+1;
			}
		}
	}
	r=r/m;
}
if(error!=0){
printf("error");
}else if(r>=z){
printf("yes");
}else{
printf("no");
}
return 0;
}
int main(){
	int i,len1,len2;
	double rate,rate0,sum=0;
	char line1[501],line2[501];
	scanf("%lf%s%s",&rate0,line1,line2);
	len1=strlen(line1);
	len2=strlen(line2);
	if(len1==len2){
		for(i=0;i<len1;i++){
			if(line1[i]==line2[i]){
				sum++;
			}
			if(line1[i]!='A'&&line1[i]!='T'&&line1[i]!='G'&&line1[i]!='C'||line2[i]!='A'&&line2[i]!='T'&&line2[i]!='G'&&line2[i]!='C'){
				printf("error");
				return 0;
			}
		}
		rate=1.0*sum/len1;
		if(rate>=rate0){
			printf("yes");
		}else{
			printf("no");
		}
	}else{
		printf("error");
	}
	return 0;
}
int main(){
	int i,j,k=0,len1,len2,temp=0;
	char str1[600],str2[600];
	double p;
	scanf("%lf",&p);
	scanf("%s%s",str1,str2);
	len1=strlen(str1);
	len2=strlen(str2);
	if(len1!=len2){
	  printf("error");
	}
	else {
		for(i=0;i<len1;i++){
			if((str1[i]!='A'&&str1[i]!='T'&&str1[i]!='C'&&str1[i]!='G')||(str2[i]!='A'&&str2[i]!='T'&&str2[i]!='C'&&str2[i]!='G')){
			  printf("error");
			  temp=1;
			  break;
		
			}
			if(str1[i]==str2[i]){
			  k++;
			}
		}
		if(temp==0){

		  if(k*1.0/len1>p){
		  printf("yes");
		  }
		  else if(k*1.0/len1<=p){
		   printf("no");
		  }
		}
	}






	return 0;
}
int main(){
	double percent;
	char a[501],b[501];
	int number=0;
	int i;
	scanf("%lf",&percent);
	scanf("%s",a);
	scanf("%s",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')&&(b[i]=='A'||b[i]=='T'||b[i]=='C'||b[i]=='G')){
		}else{
			printf("error");
			return 0;
		}
	}
	for(i=0;a[i]!='\0';i++){
		if(a[i]==b[i]){
			number++;
		}
	}
	if((double)number>((double)strlen(a))*percent){
		printf("yes");
	}else{
		printf("no");
	}
	return 0;
}
int main(){
	int i,yiyang=0,zongliang=0,x;
	char lian1[501],lian2[501];
	double biaozhun,jieguo;
	scanf("%lf",&biaozhun);
	scanf("%s%s",&lian1,&lian2);
	for(i=0;lian1[i]!='\0'&&lian2[i]!='\0';i++){
		if((lian1[i]=='A'||lian1[i]=='C'||lian1[i]=='T'||lian1[i]=='G')&&(lian2[i]=='A'||lian2[i]=='C'||lian2[i]=='T'||lian2[i]=='G')){
			if(lian1[i]==lian2[i]){
				yiyang++;
			}
			zongliang++;
		}else{
			printf("error");
			x=99;
			break;
		}
	}
	if(lian1[zongliang]!='\0'||lian2[zongliang]!='\0'){
		if(x!=99){
		printf("error");
	}
		zongliang=0;
	}
	if(zongliang!=0){
	jieguo=1.0*yiyang/zongliang;
	if(jieguo>biaozhun){
		printf("yes");
	}else{
		printf("no");
	}
	}
	return 0;
}
int main()
{
    char a[501]={'\0'},b[501]={'\0'};
	double n;
	scanf("%lf",&n);
	scanf("%s",a);
	scanf("%s",b);
	int x,y;
	x=strlen(a);
	y=strlen(b);
	if(x!=y)
	{
		printf("error");
	}
	else
	{
		int count=0,so=0;
		double rate;
		for(int i=0;i<x;i++)
		{
			if(a[i]==b[i])
			{
				count++;
			}
			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");
				so=100;
				break;
			}
		}
		if(so!=100)
		{
		    rate=count*1.0/x;
		    if(rate>n)
			{
			    printf("yes");
			}
		    else 
			{
		    	printf("no");
			}
		}
	}
    return 0;
}
int main(){
	int i,r1,r2,num=0,index=0;
	double n;
	char a[501],b[501];
	scanf("%lf\n",&n);
	scanf("%s\n",a);
	scanf("%s",b);
	r1=strlen(a);
	r2=strlen(b);
	for(i=0;i<r1;i++){
		if(a[i]=='A'||a[i]=='T'||a[i]=='C'||a[i]=='G')continue;
		else{
			index=1;
			break;
		}
	}
	for(i=0;i<r2;i++){
		if(b[i]=='A'||b[i]=='T'||b[i]=='C'||b[i]=='G')continue;
		else{
			index=1;
			break;
		}
	}
	if(r1!=r2||index==1)printf("error");
	else{
		for(i=0;i<r1;i++){
			if(a[i]==b[i])num++;
		}
		if((num*1.0/r1)>=n)printf("yes");
		else printf("no");
	
	}
	return 0;

}
int main(){
   double n;
   char  a[500],b[500];
   scanf("%lf",&n);
   scanf("%s",a);
   scanf("%s",b);
   int len1=strlen(a),len2=strlen(b);
   int i,j=0;
   double t;
   for(i=0;i<len1;i++)
   {
	   if(a[i]!='A'&&a[i]!='T'&&a[i]!='C'&&a[i]!='G')
	   {
		   printf("error");
		   goto  q;
	   }
   }
   for(i=0;i<len2;i++)
   {
	   if(b[i]!='A'&&b[i]!='T'&&b[i]!='C'&&b[i]!='G')
	   {
		   printf("error");
		   goto q;
	   }
   }
   if(len1!=len2)
   {
	   printf("error");
	   goto q;
   }
   if(len1==len2)
   {
   for(i=0;i<len1;i++)
   {
	   if(a[i]==b[i])
	   {
		   j++;
	   }
   }
   t=1.0*j/len1;
   if(t>n)
   {
	   printf("yes");
   }
   else{
	   printf("no");
   }
   }
   else
   {
	   printf("no");
   }
q:	return 0;
}
int main(){
	double s;
	char sz1[500];
	char sz2[500];
	int i,n=0;
	int len1,len2;
	double num;
	scanf("%lf%s%s",&s,sz1,sz2);
	len1=strlen(sz1);
	len2=strlen(sz2);
	if(len1!=len2){
		printf("error");
		return 0;
	}else{
		for(i=0;i<len1;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')){
				printf("error");
				return 0;
			}
		}
		for(i=0;i<len1;i++){
			if(sz1[i]==sz2[i]){
				n++;
			}
		}
		num=1.0*n/len1;
		if(num>s){
			printf("yes");
			return 0;
		}else{
			printf("no");
			return 0;
		}
	}
}
int main(){
	double k;
	int xt=0;
	int i;
	int a,b;
	char zfc1[1000],zfc2[1000];
	scanf("%lf",&k);
	scanf("%s",&zfc1);
	scanf("%s",&zfc2);
	a=strlen(zfc1);
	b=strlen(zfc2);
	for(i=0;i<a;i++){
		if(zfc1[i]!='A'&&zfc1[i]!='T'&&zfc1[i]!='G'&&zfc1[i]!='C'){
			a=0;
			break;
		}else{
			continue;
		}
	}
	for(i=0;i<b;i++){
		if(zfc2[i]!='A'&&zfc2[i]!='T'&&zfc2[i]!='G'&&zfc2[i]!='C'){
			b=0;
			break;
		}else{
			continue;
		}
	}
	if(a==0||b==0||a!=b){
		printf("error");
	}else{
	for(i=0;i<b;i++){
		if(zfc1[i]==zfc2[i]){
			xt=xt+1;
		}else{
			xt=xt;
		}
	}
	if(b*k<xt){
		printf("yes");
	}else{
		printf("no");
	}
	}
	return 0;
}
int main()
{
	int i,j,t=0,flag=0,l;
	float x;
	char str[2][100];
	scanf("%f%s%s",&x,str[0],str[1]);
	if(strlen(str[0])!=strlen(str[1]))
		flag=1;
	else
	{
		l=strlen(str[0]);
	for(i=0;i<l;i++)
	{
		if((str[0][i]!='A'&&str[0][i]!='T'&&str[0][i]!='C'&&str[0][i]!='G')||
			(str[1][i]!='A'&&str[1][i]!='T'&&str[1][i]!='C'&&str[1][i]!='G'))
		{
			flag=1;
			break;
		}
		else if(str[0][i]==str[1][i])
		{
			t++;
			
		}
	}
	}
	if(flag==1)
		printf("error");
	else 
	{
		if(((float)t/strlen(str[1]))>=x)
            printf("yes");
		else
			printf("no");
	}

	return 0;
}
int main(){
	char DNA1[501],DNA2[501];
	double rate;
	scanf("%lf",&rate);
	scanf("%s %s",DNA1,DNA2);
	int i,len1,len2,flag=0;
	len1=strlen(DNA1);
	len2=strlen(DNA2);
	if(len1!=len2){
	flag=1;
	}
	for(i=0;i<len1;i++){
		if(DNA1[i]=='A'||DNA1[i]=='T'||DNA1[i]=='C'||DNA1[i]=='G'){
		continue;
		}
		else{flag=1;}
	}
	for(i=0;i<len2;i++){
		if(DNA2[i]=='A'||DNA2[i]=='T'||DNA2[i]=='C'||DNA2[i]=='G'){
		continue;
		}
		else{flag=1;}
	}
	if(flag==1){
	printf("error\n");
	}
	else{
	int c=0;
	double result;
	for(i=0;DNA1[i];i++){
		if(DNA1[i]==DNA2[i]){
		c++;
		}
	}
	result=1.0*c/len1;
	if(result>rate){
	printf("yes");
	}
	else{
	printf("no");
	}
	}
	return 0;
}
int main()
{
	int i,sum=0,m,n;
	double x;
	scanf("%lf",&x);
	char c1[501],c2[501];
	scanf("%s",c1);
	scanf("%s",c2);
    m=strlen(c1);
	n=strlen(c2);
	if(m==n){
		for(i=0;i<m;i++){
			if((c1[i]!='A'&&c1[i]!='T'&&c1[i]!='C'&&c1[i]!='G')||(c2[i]!='A'&&c2[i]!='T'&&c2[i]!='C'&&c2[i]!='G')){
				sum++;
			}
		}
		if(sum!=0){
			printf("error");
		}else{
			for(i=0;i<m;i++){
				if(c1[i]==c2[i]){
					sum++;
				}
			}
			if((double)sum/m>x){
				printf("yes");
			}else{
				printf("no");
			}
		}
	}else if(m!=n){
		printf("error");
	}
	return 0;
}
int main(){
	char x[501],y[501],m=0,n=0,i,p=0,q=0;
	double a,b;
	scanf("%lf",&a);
	scanf("%s",x);
	scanf("%s",y);
	for(i=0;x[i];i++){
		if(x[i]!='A'&&x[i]!='C'&&x[i]!='G'&&x[i]!='T'){
			q++;
		}
		m++;
	}
	for(i=0;y[i];i++){
		if(y[i]!='A'&&y[i]!='C'&&y[i]!='G'&&y[i]!='T'){
			q++;
		}
		p++;
	}
	if(m!=p||q!=0){
		printf("error");
	}else{
		for(i=0;i<m;i++){
			if(x[i]==y[i]){
				n++;
			}
		}
		b=1.0*n/m;
		if(b>a){
			printf("yes");
		}else{
			printf("no");
		}
	}
	return 0;
}
int main()
{
	int i, j, m=0;
	double sum = 0, n;
	char gene[3][501];

	scanf("%lf", &n);
	scanf("%s", gene[0]);
	scanf("%s", gene[1]);
	if(strlen(gene[0])!=strlen(gene[1]))
		printf("error");
	else
	{
		for(i = 0; i < 2; i++)
	    {
		    for(j = 0; gene[i][j] != '\0'; j++)
		    {
			    if(gene[i][j]!='A' && gene[i][j]!='T' && gene[i][j]!='C' && gene[i][j]!='G')
				{
					printf("error");
					m = 1;
				    break;
				}
		    }
	    }
		for(i = 0; gene[0][i]!='\0'; i++)
		{
			if(gene[0][i]==gene[1][i])
				sum++;
		}
		if(sum/strlen(gene[0])>n && m == 0)
			printf("yes");
		else if(sum/strlen(gene[0])<=n && m == 0)
			printf("no");
	}
	return 0;
}
int main(){
   char a[501],b[501];
   int i,time=0;
   double n,p,l,j,k,same=0;
   scanf("%lf",&n);
   scanf("%s",&a);
   scanf("%s",&b);
   j=strlen(a);
   k=strlen(b);
   for(i=0;i<j;i++){
	   if(!(a[i]=='A'||a[i]=='T'||a[i]=='C'||a[i]=='G')){
		   printf("error");
		   time++;
		   break;
	   }
   }
   for(i=0;i<k;i++){
	   if((!(b[i]=='A'||b[i]=='T'||b[i]=='C'||b[i]=='G'))&&time==0){
		   printf("error");
		   time++;
		   break;
	   }
   }
   if(j!=k&&time==0){
	   printf("error");
	   time++;
   }
   if(time==0){
	   for(i=0;i<j;i++){
		   if(a[i]==b[i]){
			   same++;
		   }
	   }
	   l=strlen(a);
	   p=same/l;
	   if(p>n){
		   printf("yes");
	   }else{
		   printf("no");
	   }
   }
   return 0;
}
int main()
{
	int i,n1,n2,p;
	double rate,m=0.0;
	char str1[501],str2[501];
	scanf("%lf",&rate);
	scanf("%s",str1);
	scanf("%s",str2);
	n1=strlen(str1);
	n2=strlen(str2);
	p=0;
	if(n1==n2)
	{
	   for(i=0;i<n1;i++)
	   {if(str1[i]!='A'&&str1[i]!='T'&&str1[i]!='C'&&str1[i]!='G')
	        p=1;
	   else if(str2[i]!='A'&&str2[i]!='T'&&str2[i]!='C'&&str2[i]!='G')
		    p=1;
	   if(p==1)
	   {
		   printf("error");
		   break;
	   }
	   if(str1[i]==str2[i])
	       m+=1.0;
	   }
	   if(p==0)
	      if(m/n1>=rate)
		   printf("yes");
	      else printf("no");
	}
	else printf("error");

	return 0;
}
int main(){
int biao=0,i,j,n,l,d,c=0,a1=0,a2;
double v,w;
char a[505],b[505];
scanf("%lf",&v);
scanf("%s",a);
scanf("%s",b);
c=strlen(a);
d=strlen(b);
if(c!=d){biao=1;printf("error");}
if(biao==0){for(i=0;i<c;i++){if(!((a[i]=='A'||a[i]=='T'||a[i]=='C'||a[i]=='G')&&(b[i]=='A'||b[i]=='T'||b[i]=='C'||b[i]=='G'))){biao=1;printf("error");break;}}}
if(biao==0){for(i=0;i<c;i++){if(a[i]==b[i])a1++;}w=1.0*a1/c*1.0;if(w>=v)printf("yes");else printf("no");}
return 0;
}
int main(){
 double k,m,n,s=0;
 int i;
 char a[501],b[501];
 scanf("%lf",&k);
 scanf("%s",a);
 scanf("%s",b);
 m=strlen(a);
 n=strlen(b);
 if(m!=n){
   printf("error");
 }else{
   for(i=0;i<m;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'))){
       if(a[i]==b[i]){
           s++;
       }else{
           s=s;
       }
   }else{
       s=-1;
       break;
   }
  }
  s=s/m;
  if(s<0){
      printf("error");
  }else if(s>=0&&s<=k){
      printf("no");
  }else{
      printf("yes");
  }
 }
 return 0;
}
int main(){
	double x,p;
	int i,l,k=0,c=1;
	scanf("%lf",&x);
	char c1[501],c2[501];
	scanf("%s",c1);
	scanf("%s",c2);
	l=strlen(c1);
	for(i=0;i<l;i++){
		if((c1[i]!='A')&&(c1[i]!='T')&&(c1[i]!='C')&&(c1[i]!='G')){
			printf("error");
			c=0;
			break;
		}
		if((c2[i]!='A')&&(c2[i]!='T')&&(c2[i]!='C')&&(c2[i]!='G')){
			printf("error");
			c=0;
			break;
		}
		if(c1[i]==c2[i]){
			k++;
		}
	}
	if(c){
		p=((double)k)/((double)l);
		if(p>x){
			printf("yes");
		}
		else{printf("no");}
	}
	return 0;
}
int main()
{
	char a[501]={0};
	char b[501]={0};
int i,n;
double e,s=0,c;
scanf("%lf",&e);
scanf("%s",a);
scanf("%s",b);
if(strlen(a)!=strlen(b)){
	printf("error");
	return 0;
}
else {
	for(i=0;a[i]!='\0';i++){
	if	((a[i]!='A'&&a[i]!='T'&&a[i]!='G'&&a[i]!='C')&&
		(b[i]!='A'&&a[i]!='T'&&a[i]!='G'&&a[i]!='C')){
		printf("error");
			return 0;
	}

else {
n=strlen(a);

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

c=s/n;

if(c>e){
	printf("yes\n");
}
else if(c<=e){
	printf("no\n");
}

		
return 0;
}
int main(){
    int i,l,m,k=0,p=1;
    double n;
    char str[500],tw[500];
    scanf("%lf",&n);
    scanf("%s",str);
    scanf("%s",tw);
    l=strlen(str);
    m=strlen(tw);
    if(l!=m) p=0;
    for(i=0;i<l;i++)if((str[i]!='A'&&str[i]!='T'&&str[i]!='C'&&str[i]!='G')||(tw[i]!='A'&&tw[i]!='T'&&tw[i]!='C'&&tw[i]!='G')) {
         p=0;
         break;
         }
if(p==1){
         for(i=0;i<l;i++) if(str[i]==tw[i]) k++;
         if(1.0*k/l>=n) printf("yes") ;
         else printf("no");
         }
else printf("error");
return 0;
}
int main()
{
	int i,len1,len2;
	double n,j=0,e=0;
	char s[501],a[501];
	scanf("%lf",&n);
	scanf("%s",s);
    scanf("%s",a);
	len1=strlen(s);
	len2=strlen(a);
	if(len1!=len2){
		printf("error");
		return 0;
	}
	for(i=0;i<len1;i++){
		if((s[i]!='A'&&s[i]!='T'&&s[i]!='C'&&s[i]!='G')||(a[i]!='A'&&a[i]!='T'&&a[i]!='C'&&a[i]!='G')){
			printf("error");
			return 0;
		}
		if((s[i]=='A'||s[i]=='T'||s[i]=='C'||s[i]=='G'||a[i]=='A'||a[i]=='T'||a[i]=='C'||a[i]=='G')&&s[i]==a[i]){
			j=j+1;
		}
	}
	e=j/len1;
    if(e>n){
		printf("yes");
	}else if(e<=n){
		printf("no");
	}
    return 0;
}
int main(){
	int i,k=0,len,panduan=0;
	double r,n;
	char a[501],b[501];
	scanf("%lf%s%s",&n,&a,&b);
	len=strlen(a);
	if(len!=strlen(b)){
		panduan=1;
	}
	else{
	for(i=0;i<len;i++){
		if((a[i]!='T'&&a[i]!='A'&&a[i]!='C'&&a[i]!='G')||(b[i]!='A'&&b[i]!='T'&&b[i]!='G'&&b[i]!='C')){
			panduan=1;
			break;
		}
		if(a[i]==b[i]){
			k++;
		}
	}
	r=1.0*k/len;
	}
	if(panduan==1){
		printf("error");
	}
	else{
		if(r>n){
		printf("yes");
		}
		else{
			printf("no");
		}
	}
	


	return 0;
}
int main(){
double c,w=0,n=0;
char x[600],y[600];
scanf("%lf",&c);
getchar();
gets(x);
gets(y);
if (strlen(x)==strlen(y)){
for (int j=0;j<strlen(x);j++){
    if ((x[j]!='A'&&x[j]!='T'&&x[j]!='G'&&x[j]!='C')||(y[j]!='A'&&y[j]!='T'&&y[j]!='G'&&y[j]!='C')){
                  printf("error");
                  n=1;
                  break;
    }
    if(x[j]==y[j]){
          w++;
    }
 }
}
else {
     printf("error");
     n=1;
}
if (n==0){
    w=w/strlen(x);
    if (c<w){
              printf("yes");
    }
    else {
              printf("no");
    }
}
return 0;
}
int main (){
	int i,x,y;
	double w,sum=0,p;
	char a[1000],b[1000];
	scanf("%lf",&w);
	scanf("%s",a);
	scanf("%s",b);
x=strlen(a);
y=strlen(b);
	if(x==y){
		for(i=0;i<x;i++){
			if(a[i]==b[i]){
				sum++;
			} 
			else if((a[i]!='A'&&a[i]!='C'&&a[i]!='T'&&a[i]!='G')||(b[i]!='A'&&b[i]!='C'&&b[i]!='T'&&b[i]!='G')){
			printf("error\n");
			return 0;
		}
		}
		
	}
	else if(x!=y){
		printf("error\n");
		return 0;
	}
	while (x==y){
		p=sum/x;
		if(p>=w){
			printf("yes\n");
			break;
		}
		else printf("no\n");
		break;
	}
	
	return 0;
}
int main(){
	int len,k,sum=0,i,t=0;
	double x,y;
	char jz[500],a[500];
	scanf("%lf",&x);
	scanf("%s %s",jz,a);
	len=strlen(jz);
	k=strlen(a);
	if(k!=len)printf("error");
	else{
	for(i=0;i<len;i++){
		if(jz[i]!='T'&&jz[i]!='A'&&jz[i]!='C'&&jz[i]!='G'&&a[i]!='T'&&a[i]!='A'&&a[i]!='G'&&a[i]!='C'){
			printf("error");
			t=1;
			break;
		}
			if(jz[i]==a[i])
			sum++;
		
	}
	y=1.0*sum/len;
	if(t==0){
	if(y>=x)
		printf("yes");
	else printf("no");
	}
	}
	return 0;
}
int main()
{
	double m=0.0;
         int t,i,r;
	double n;
	scanf("%lf",&n);
	char z[100],c[100];
	scanf("%s",z);
	scanf("%s",c);
	t=strlen(z);
	r=strlen(c);
	if(t!=r){
		printf("error");
	}
	else{
		for(i=0;i<t;i++){
			if((z[i]!='A'&&z[i]!='T'&&z[i]!='C'&&z[i]!='G')||(c[i]!='A'&&c[i]!='T'&&c[i]!='C'&&c[i]!='G')){
				printf("error");
				return 0;
			}
			if(z[i]==c[i]){
				m++;
			}
		}
		if(1.0*m/t>n){
			printf("yes");
		}
                  else{
                           printf("no");
                  }
	}
	return 0;
}
int main(){
int k,i;
double m,ac,bc,n;
k=0;
m=0;
ac=0;
bc=0;
scanf("%lf\n",&n);
char a[501],b[501];
scanf("%s\n",a);
scanf("%s",b);
ac=strlen(a)-1;
bc=strlen(b)-1;
if(ac!=bc){
	k++;
	printf("error");
return 0;
}
else {
	for(i=0;a[i]!='\0';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')){
		k++;
		printf("error");
	break;}
    else{
		if(a[i]==b[i]){
		m++;}
	}
}
}
if(k==0){
	if(m/ac>=n){printf("yes");}
	else{printf("no");}
}

    return 0;
    }
int main()
{
	int i,z=0,e=0,k=0;
	double v;
	char x[501],y[501];
	scanf("%lf%s%s",&v,&x,&y);
	for(i=0;x[i];i++){
		z++;
		if(!(x[i]=='A'||x[i]=='T'||x[i]=='G'||x[i]=='C')){
			printf("error");
			return 0;
		}
	}
	for(i=0;y[i];i++){
		e++;
		if(!(y[i]=='A'||y[i]=='T'||y[i]=='G'||y[i]=='C')){
			printf("error");
			return 0;
		}
	}
	if(z!=e){
		printf("error");
		return 0;
	}
	for(i=0;x[i];i++){
		if(x[i]==y[i]){
			k++;
		}
	}
	if(1.0*k/z>v){
		printf("yes");
	}else{
		printf("no");
	}
	return 0;
}
int main(){
	double n;
	int k,i,j=0,l;
	char s[501];
	char c[501];
	scanf("%lf",&n);
	scanf("%s",s);
	scanf("%s",c);
	k=strlen(s);
	l=strlen(c);
	for(i=0;s[i];i++){
		if(k!=l||(s[i]!='A'&&s[i]!='G'&&s[i]!='C'&&s[i]!='T')||(c[i]!='A'&&c[i]!='G'&&c[i]!='C'&&c[i]!='T')){
			j=-1;
			break;
		}
		if(0==s[i]-c[i]){
			j++;
		}
	}
	if(n<=1.00*j/k&&j!=0){
		printf("yes");
	}else if(j==-1){
		printf("error");
	}else{
		printf("no");
	}
	return 0;
}
int main ()
{
    int i,j=0,h=1,la,lb;
    double s,r;
    char a[1000],b[1000];
    scanf ("%lf",&s);
    scanf ("%s\n%s",a,b);
    la=strlen(a);
    lb=strlen(b);
    if (la!=lb)
    {
        printf ("error");
    }
    else 
    {
        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");
                h=0;
                break;
            }             
        }
        if (h==1)
        {
            for (i=0;a[i]!='\0';i++)
            {
                if (a[i]==b[i])
                {
                    j++;
                }
            }
            r=(double)j/(double)la;
            if (r>=s)
            { printf ("yes"); }
            else 
            { printf ("no"); }
        }
    }
    
    return 0;
}
int main()
{
	char a[500],b[500];
	int len,lmn,sum=0,i,flag=1;
	double n;
	scanf("%lf",&n);
	scanf("%s%s",a,b);
	len=strlen(a);
	lmn=strlen(b);
	if(len!=lmn)
	{
		printf("error");
	}
else

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'))
{ flag=0;
  printf("error");
break;
}
}

if(len==lmn&&flag==1)
{
for(i=0;i<len;i++)
{
	if(a[i]==b[i])
		sum+=1;
}
if((double)sum/len>n)
printf("yes");
else
printf("no");
}


	return 0;
}
int main(){
    double z;
    int i,j,a,b,c,d,m,n;
    scanf("%lf",&z);
    char zfc[501];
    scanf("%s",zfc);
    char bjc[501];
    scanf("%s",bjc);
    i=0;
    j=0;
    c=0;
    d=0;
    n=0;
    while(zfc[i]!='\0'){i++;}
    while(bjc[j]!='\0'){j++;}
    for(a=0;zfc[a]!='\0';a++){if(zfc[a]=='A'||zfc[a]=='T'||zfc[a]=='C'||zfc[a]=='G'){c++;}}
    for(b=0;bjc[b]!='\0';b++){if(bjc[b]=='A'||bjc[b]=='T'||bjc[b]=='C'||bjc[b]=='G'){d++;}}
    if(i==j&&c==i&&d==i){for(m=0;m<i;m++){if(zfc[m]==bjc[m]){n++;}}
    if((1.0*n/i)>z){printf("yes");}else{printf("no");}
}
else printf("error");
return 0;
}
int main(){
	double a,m,n,p;
	int l,k,q,i;
	char b[500],c[500];
	k=0;
	scanf("%lf",&a);
	scanf("%s\n%s",b,c);
	l=strlen(b);
	q=strlen(c);
	if(l!=q){
		printf("error");
		return 0;
	}
	for(i=0;i<l;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')){
			printf("error");
			return 0;
		}
	}
	for(i=0;i<l;i++){
		if(b[i]==c[i]){
			k++;
		}
	}
	m=l;
	n=k;
	p=n/m;
	if(p>a){
		printf("yes");
	}else{
		printf("no");
	}
	return 0;
}
int main()
{
	int b=0,a,len1,len2,x=0,c;
	double bz;
	char m1[505],m2[505];
	scanf("%lf",&bz);
	scanf("%s%s",m1,m2);
	len1=strlen(m1);
	len2=strlen(m2);
	if(len1!=len2)
		x=1;
	for(c=0;c<len1;c++)
	{
		if(m1[c]!='A'&&m1[c]!='T'&&m1[c]!='C'&&m1[c]!='G'||m2[c]!='A'&&m2[c]!='T'&&m2[c]!='C'&&m2[c]!='G')
			x=1;
	}
	if(x)
	{
		printf("error");
	}
	else
	{
		for(a=0;a<len1;a++)
		{
			if(m1[a]==m2[a])
			{
				b++;
			}
		}
		if(b*1.0/len1>bz)
		{
			printf("yes");
		}
		else
		{
			printf("no");
		}
	}
	return 0;
}
int main (){
	double x;
	int n,i,m,y;
	char lian1[LEN],lian2[LEN];
	scanf("%lf",&x);
	scanf("%s",lian1);
	scanf("%s",lian2);
	n=strlen(lian1);
	y=strlen(lian2);
	if(y!=n){printf("error");
	return 0;
	}
	for(i=0;i<n;i++){
		if(!(lian1[i]=='A'||lian1[i]=='T'||lian1[i]=='C'||lian1[i]=='G'||lian2[i]=='A'||lian2[i]=='T'||lian2[i]=='C'||lian2[i]=='G')){
		   printf("error");
		return 0;}
	}
	m=0;
	for(i=0;i<n;i++){
		if(lian1[i]==lian2[i]){
	      m++;
		}
	}
	if(m*1.0/n>x){
	  printf("yes");
	}else if(m*1.0/n<=x){
	  printf("no");
	}
	
	

 
return 0;


}
int main()
{
    double a;
    int sum=0,i,l1,l2,judge=1;
    char x[1001],y[1001];
    scanf("%lf%s%s",&a,x,y);
    l1=strlen(x),l2=strlen(y);
    if (l1!=l2)
       judge=0;
    else 
       for (i=0;i<l1;i++)
       {
           if (x[i]!='C'&&x[i]!='G'&&x[i]!='A'&&x[i]!='T')
              judge=0;
           if (y[i]!='C'&&y[i]!='G'&&y[i]!='A'&&y[i]!='T')
              judge=0;
       }
    if (judge==1)
    {
       for (i=0;i<l1;i++)
            if (x[i]==y[i])
               sum++;
       if (sum>=(int)(a*l1))
          printf("yes");
       else
          printf("no");
    }
    else
      printf("error");
    return 0;
}
int main(){
double n,w;
int i,m,z=0,e=0;
char a[600],b[600];
scanf("%lf",&n);
scanf("%s%s",a,b);
m=strlen(a);
for(i=0;i<m;i++){
if(a[i]==b[i]) z++;
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");
e=1;
break;
}
}
w=1.0*z/m;
if(e==0){
if(w>=n) printf("yes");
else printf("no");
}
	return 0;
}
int main(){
    double a,b;
    char s[501],t[501];
    char *p,*q;
    int m=0,n,l;
    scanf("%lf %s %s",&a,s,t);
    n=strlen(s);
    l=strlen(t);
    if(n==l){
       p=s;
       q=t;
       while(*p!='\0'){
           if(*p!='A'&&*p!='T'&&*p!='C'&&*p!='G'){
               printf("error");
               return 0;
           }
           else{
               if(*q!='A'&&*q!='T'&&*q!='C'&&*q!='G'){
                   printf("error");
                   return 0;
               }
               else{
                   if(*p==*q){m++;} 
                   p++;
                   q++;
               }
           }
           
       }
       b=m*1.0/n;
       if(b>a) printf("yes");
       else printf("no");
    }
    else printf("error");
    return 0;
}
int main(){
 int i,q=0;
 double n,A,B,p=0.0;
 char a[500],b[500];
 scanf("%lf",&n);
 char c=getchar();
 gets(a);
 gets(b);
 A=strlen(a);
 B=strlen(b);
if(A!=B){
  printf("error");
 }
 if(A==B){
  for(i=0;i<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')){
    q=1;
    printf("error");
    break;
   }
  }
        if(q==0){
   for(i=0;i<A;i++){
       if(a[i]==b[i]){
        p+=1.0;
    }
   }
   if((p/A)>n){
    printf("yes");
            }else{
    printf("no");
   }
  }
 }

 return 0;
}
int main()
{
double d;
scanf("%lf",&d);
char s[100];
char u[100];
scanf("%s %s",s,u);
int f=0;
int t=0,i,r=0;
	for(i=0;s[i]!='\0';i++)
	{
		t++;
	}
for(i=0;u[i]!='\0';i++)
	{
		r++;
	}
if(r!=t)
{
	printf("error\n");
	return 0;
}
else
{	for(i=0;s[i]!='\0';i++)
	{
		if(s[i]!='A'&&s[i]!='T'&&s[i]!='C'&&s[i]!='G')
		{
			printf("error\n");
		    return 0;
		}
		else if(u[i]!='A'&&u[i]!='T'&&u[i]!='C'&&u[i]!='G')
		{	
			printf("error\n");
	    	return 0;
		}
        else if(s[i]==u[i])
		{
			f++;
		}
}
        if(f*1.0/t>=d)
		{
		printf("yes\n");
		return 0;
		}
    	else
		{
		printf("no\n");
		return 0;
		}

}
    return 0;
}