semeru/Code-Code-CloneDetection-POJ104 huggingface dataset:
int main(){
	int i,n,l1,l2,k;
	n=0;
	k=1;
	double s;
	char x1[501],x2[501];
	scanf("%lf",&s);
	scanf("%s",x1);
	scanf("%s",x2);
	l1=strlen(x1);
	l2=strlen(x2);
	if(l1!=l2){
		printf("error");
	}else{
		for(i=0;i<l1;i++){
			if(!(x1[i]=='A'||x1[i]=='C'||x1[i]=='G'||x1[i]=='T')){
				printf("error");
				k=0;
				break;
			}
			if(!(x2[i]=='A'||x2[i]=='C'||x2[i]=='G'||x2[i]=='T')){
				printf("error");
				k=0;
				break;
			}
			if(x1[i]==x2[i]){
				n++;
			}
		}
		if(k){
		    if(1.0*n/l1>s){
			    printf("yes");
			}else{
			    printf("no");
			}
		}
	}
	return 0;
}
int main(){
	double x,y;
	int n=0,i,c,d,m=0;
	char a[502],b[502];
	scanf("%lf %s %s",&x,a,b);
	c=strlen(a);
	d=strlen(b);

	for(i=0;i<c;i++){
		if(a[i]!='A'&&a[i]!='T'&&a[i]!='C'&&a[i]!='G'){
			m=1;
			break;
		}
	}
	for(i=0;i<d;i++){
		if(b[i]!='A'&&b[i]!='T'&&b[i]!='C'&&b[i]!='G'){
			m=1;
			break;
		}
	}
	if(m==1||c!=d){
		printf("error");
	}else{
		for(i=0;a[i],b[i];i++){
			if(a[i]==b[i]){
				n++;
			}
		}
		y=1.0*n/c;
		if(y>x){
			printf("yes");
		}else{
			printf("no");
		}
	}
	return 0;
}
int main()
{char a[500],b[500];
 int i,n;
 float m,j=0;
 	scanf("%f",&m);
 	scanf("%s",a);
 	scanf("%s",b);
 	n=strlen(a);
 	if((strlen(a))!=(strlen(b)))
 	{	printf("error");
 		return 0;
	}
 	for(i=0;i<n;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])
    		j++;
		}
 	}
 	if(j/n>=m)
 	printf("yes");
 	else
 	printf("no");
 	return 0;
}
int main(){
	double k;
	scanf("%lf",&k);
	char qian[501];
	char hou[501];
	scanf("%s%s",&qian,&hou);

	int i,s=0;
	if(strlen(qian)!=strlen(hou)){
		s=1;
	}
	int m=0;
	for(i=0;i<strlen(qian);i++){
		if((qian[i]!='A'&&qian[i]!='T'&&qian[i]!='G'&&qian[i]!='C')||(hou[i]!='A'&&hou[i]!='T'&&hou[i]!='G'&&hou[i]!='C')){
			s=1;
		}
	}
	if(s==1){
		printf("error");
	}else if(s==0){
		for(i=0;i<strlen(qian);i++){
			if(qian[i]==hou[i]){
				m++;
			}
		}
		if(1.0*m/strlen(qian)>k){
			printf("yes");
		}else if(1.0*m/strlen(qian)<=k){
			printf("no");
		}
	}
	return 0;
}
int main () {
int l1,l2,s=0;
double r,d;
char s1[max+1],s2[max+1];
scanf("%lf %s %s",&r,s1,s2);
l1=strlen(s1);
l2=strlen(s2);
if (l1!=l2) {
            printf("error");
         
            return 0;
            } else { for(int i=0;i<l1;i++) {
                    if ((s1[i]!='A'&&s1[i]!='G'&&s1[i]!='C'&&s1[i]!='T')||(s2[i]!='A'&&s2[i]!='G'&&s2[i]!='C'&&s2[i]!='T')){
                                      printf("error");
                                   
                                      return 0;
                                      }
                                      }
                         for (int j=0;j<l1;j++) {             
                          if (s1[j]==s2[j]) {
                              s++;
                              }       
                              }
                              d=1.0*s/l1;
                              if (d>r) {
                                       printf("yes");
                                       } else {printf("no");}
                              }
                                                           


return 0;
}
int main(){
	double a,bl;
	int n1,n2,i,k=0,sum=0;
	char dna1[501],dna2[501];
	scanf("%lf",&a);
	scanf("%s%s",dna1,dna2);
	n1=strlen(dna1);
	n2=strlen(dna2);
	if(n1!=n2){
		printf("error");
	}else{
		for(i=0;i<n1;i++){
			if(dna1[i]!='A'&&dna1[i]!='G'&&dna1[i]!='C'&&dna1[i]!='T'){
				k=1;
				break;
			}
			if(dna2[i]!='A'&&dna2[i]!='G'&&dna2[i]!='C'&&dna2[i]!='T'){
				k=1;
				break;
			}
			if(dna1[i]==dna2[i]){
				sum++;
			}
		}
		if(k==0){
			bl=(double)sum/n1;
			if(bl>a){
				printf("yes");
			}else{
				printf("no");
			}
		}else{
			printf("error");
		}
	}
return 0;	
}
int main(){
	int n,m,i,k,num=0,flag=0;
	double l;
	char a[501],b[501],s[10];
	gets(s);
	k=atoi(s);
	gets(a);
	gets(b);
	n=strlen(a);
	m=strlen(b);
	for(i=0;a[i]!='\0';i++){
		if((a[i]!='A')&&(a[i]!='T')&&(a[i]!='C')&&(a[i]!='G')){
			flag=1;
			break;
		}
	}
	if((n==m)&&(flag==0)){
		for(i=0;a[i]!='\0';i++){
			if(a[i]==b[i]){
				num++;
			}
		}
		l=(double)num/n;
		if(l>k){
			printf("yes");
		}
		else{
			printf("no");
		}
	}
	else{
		printf("error");
	}
	return 0;
}
int main(){
	int i,m=0,s;
	double n,x;
	char one[500],two[500];
	scanf("%lf",&n);
	scanf("%s%s",one,two);
	s=strlen(one);
	if(strlen(one)!=strlen(two))
		printf("error");
	else{
		for(i=0;one[i]!='\0';i++){
			if((one[i]!='A'&&one[i]!='G'&&one[i]!='T'&&one[i]!='C')||(two[i]!='A'&&two[i]!='T'&&two[i]!='C'&&two[i]!='G')){
				s=0;
			}
			else{
				if(one[i]==two[i])
					m++;
			}
		}
		x=1.0*m/s;
		if(s==0)
			printf("error");
		else if(x>n)
			printf("yes");
		else
			printf("no");
	}
	return 0;
}
int main(){
	int i, a=0, b;
	double xg;
	char s1[501], s2[501];
	scanf("%lf %s %s", &xg, s1, s2);
	if(strlen(s1)!=strlen(s2)){
		printf("error");
		return 0;
	}
	for(i=0;s1[i]!='\0';i++){
		if((s1[i]=='T'||s1[i]=='A'||s1[i]=='G'||s1[i]=='C')&&(s2[i]=='T'||s2[i]=='A'||s2[i]=='G'||s2[i]=='C')){
			if(s1[i]==s2[i]){
			a++;
			}
		}
		else{
			printf("error");
			return 0;
		}
	}
	b=strlen(s1);
	if(a*1.0/b>xg){
		printf("yes");
	}
	else{
		printf("no");
	}
	return 0;
}
int main(){
	int i,n;
	double x,t=0;
	 scanf("%lf",&x);
	char a[500],b[500];
	scanf("%s %s",a,b);
	if(strlen(a)!=strlen(b)) printf("error");
	else{
		n=strlen(a);
		for(i=0;a[i]!='\0'&&b[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')){
		       if(a[i]==b[i]) t++;
		   }else{
			  printf("error");
			  return 0;
		   }
		}
		if(t/n>x) printf("yes");
		else printf("no");
	}
  return 0;
}
int main (){
	double r;
	scanf("%lf",&r);
	char zfc[500];
	char jiyin[500];
	scanf("%s",zfc);
	scanf("%s",jiyin);
	int n=0;
	int i,k,L,N;
	for (i=0;zfc[i]!='\0';i++){
		if(zfc[i+1]=='\0'){
			L=i;
		}
	}
	//printf("%d\n",L);
	for (k=0;jiyin[k]!='\0';k++){
		if(jiyin[k+1]=='\0'){
			N=k;
		}
	}
	if(L!=N){
		printf("error");
	}else {
		for(i=0;zfc[i]!='\0';i++){
			if(zfc[i]!='A'&&zfc[i]!='T'&&zfc[i]!='C'&&zfc[i]!='G'){
				printf("error");
				return 0;
			}
		}
		for(i=0;jiyin[i]!='\0';i++){
			if(jiyin[i]!='A'&&jiyin[i]!='T'&&jiyin[i]!='C'&&jiyin[i]!='G'){
				printf("error");
				return 0;
			}
		}
	for (i=0;zfc[i]!='\0';i++)
	{
		if(zfc[i]==jiyin[i])
		{
			n++;
		}
	}
				if (n*1.0/L>r)
				{
					
		           printf("yes");
	            }else 
				{
		            printf("no");
	            }
			
		

	}
	
	return 0;
}
int main()
{
	double bz,sj;
	int n1,n2,n,i,p;
	char jy1[501],jy2[501];
	scanf("%lf",&bz);
	scanf("%s",jy1);
	scanf("%s",jy2);
	p=0;
	n1=strlen(jy1);
	n2=strlen(jy2);
	if(n1==n2){
		n=n1;
	}else{
		printf("error");
		return 0;
	}
	for(i=0;i<n;i++){
		if((jy1[i]!=65&&jy1[i]!=84&&jy1[i]!=67&&jy1[i]!=71)||(jy2[i]!=65&&jy2[i]!=84&&jy2[i]!=67&&jy2[i]!=71)){
			printf("error");
			return 0;
		}else{
		if(jy1[i]==jy2[i]){
			p++;
		}else{
			p=p;
		}}
	}
	sj=1.0*p/n;
	if(sj>=bz){
		printf("yes");
	}else{
		printf("no");
	}
	return 0;
}
int main(){
    double n;
    int num=0,pan=1;
    char s;
    char s1[600],a1[600];
    gets(&s);
    n=atof(&s);
    gets(s1);
    gets(a1);
    for(int i=0;i<strlen(s1);i++){
        if(s1[i]!='A'&&s1[i]!='C'&&s1[i]!='G'&&s1[i]!='T'){
                pan=0;
        }
    }
    for(int i=0;i<strlen(a1);i++){
        if(a1[i]!='A'&&a1[i]!='C'&&a1[i]!='G'&&a1[i]!='T'){
            pan=0;
        }
    }
    if(strlen(s1)!=strlen(a1))
        pan=0;
    else if(strlen(s1)==strlen(a1)&&pan!=0){
        for(int i=0;i<strlen(s1);i++){
            if(a1[i]==s1[i])
                num++;
        }
        if(1.0*num/strlen(s1)<n)
            printf("no");
        else printf("yes");
    }
    if(pan==0)
        printf("error");
        return 0;
}
int main()
{
	char a[500],b[500],st[5]="ATGC";
	int len1,len2,i,s=0;
	double x,n;
	scanf("%lf",&x);
	scanf("%s\n%s",a,b);
	len1=strlen(a);
	len2=strlen(b);
	int F=0;
	if(len1!=len2)
	{
		printf("error");
		F=1;
	}
	if(F==0)
	{
	for(i=0;i<len1;i++)
	{
		if((a[i]!=st[0])&&(a[i]!=st[1])&&(a[i]!=st[2])&&(a[i]!=st[3]))
		{
			printf("error");
			F=1;
			break;
		}
	}
	}
	if(F==0)
	{
	for(i=0;i<len2;i++)
	{
		if((b[i]!=st[0])&&(b[i]!=st[1])&&(b[i]!=st[2])&&(b[i]!=st[3]))
		{
			printf("error");
			F=1;
			break;
		}
	}
	}
	if(F==0)
	{
		for(i=0;i<len1;i++)
		{
			if(a[i]==b[i])
			{
				s++;
			}
		}
		n=(double)s/len1;
		if(n>x)
		{
			printf("yes");
		}
		else
		{
			printf("no");
		}
	}
	return 0;
}
int main(){
	double xgl,e;
	char a[501],b[501];
	double cd1,cd2;
	int i;
	double js=0;

	scanf("%lf",&xgl);
	scanf("%s %s",a,b);

	cd1=strlen(a);
	cd2=strlen(b);

	if(cd1!=cd2){
		printf("error");
		return 0;
	}
	for(i=0;i<cd1;i++){
		if((a[i]=='A'&&b[i]=='A')||(a[i]=='T'&&b[i]=='T')||(a[i]=='C'&&b[i]=='C')||(a[i]=='G'&&b[i]=='G')){
			js++;
		}else 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;
		}
	}
	e=js/cd1;
	if(e>xgl){
		printf("yes");
	}else{
		printf("no");
	}
	return 0;
}
int judge(char *a, char *b, double r) {
  int n = strlen(a), m = strlen(b), i, s = 0;
  if (n != m) return 0;
  for (i = 0; i < n; ++i) {
    if (!strchr("ATCG", a[i]) || !strchr("ATCG", b[i])) return 0;
    if (a[i] == b[i]) ++s;
  }
  if (s / (double)n > r) return 1; else return -1;
}

int main() {
  char a[600], b[600];
  double r;
  int s;
  scanf("%lf\n", &r);
  gets(a);
  gets(b);
  s = judge(a, b, r);
  if (s > 0)
    puts("yes");
  else if (s < 0)
    puts("no");
  else
    puts("error");
  return 0;
}
int main(){
	int i,a1,a2,sum;
	double m,x;
	char s1[502],s2[502];
	scanf("%lf",&m);
	scanf("%s",s1);
	scanf("%s",s2);
	a1=strlen(s1);
	a2=strlen(s2);
	sum=0;
	if(a1!=a2){
		printf("error");
	}else{
		for(i=0;s1[i];i++){
			if(((s1[i]!='A')&&(s1[i]!='T')&&(s1[i]!='C')&&(s1[i]!='G'))||((s2[i]!='A')&&(s2[i]!='T')&&(s2[i]!='C')&&(s2[i]!='G'))){
                sum=-1;
				break;
			}else if(s1[i]==s2[i]){
				sum++;
			}
		}
		if(sum==-1){
			printf("error");
		}else{
		    x=(double)sum/a1;
            if(x>m){
		        printf("yes");
			}else{
		        printf("no");
			}
		}
	}
	return 0;
}
void main()
{
    float x,fenzi=0;
    int lena,lenb,i,j=0;
    char a[505],b[505],ch;
    scanf("%f",&x);
    scanf("%c",&ch);
    gets(a);

    gets(b);
 
    lena=strlen(a);
    lenb=strlen(b);
    if(lena!=lenb)
    printf("error\n");
    else
    {
    	 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]) fenzi++;
    	        }
    	      else {j=1;printf("error\n");break;}
    	 }
         if(j==0&&fenzi>=x*lena) printf("yes\n");
         else if(j==0) printf("no\n");
    }
    		
}
int main(){
	int q,w,e=0,r=1,i;
	double a,b;
	char A[1000],B[1000];
	scanf("%lf",&a);
	scanf("%s",A);
	scanf("%s",B);
	q=strlen(A);
	w=strlen(B);
//	printf("%d%d",q,w);
//	puts(A);puts(B);
	if(q!=w){
		printf("error");
		r=-1;
	}else{
		for(i=0;A[i]!='\0';i++){
			
			if((A[i]!='T'&&A[i]!='C'&&A[i]!='A'&&A[i]!='G')||(B[i]!='T'&&B[i]!='C'&&B[i]!='A'&&B[i]!='G')){
				r=-1;
				printf("error");
				break;
			}else if(A[i]!=B[i]){
				continue;
			}else if(A[i]==B[i]){
				e++;
			}
		}
	}
//	printf("%d",e);
	if(r==1){
		b=(e*1.0)/(q*1.0);
//	printf("%lf",b);
		if(b>a){
			printf("yes");
		}else{
			printf("no");
		}
	}
	return 0;
}
int main()
{
    int i,l,p;
    double n,m=0,b;
    char d[501],f[501];
    scanf("%lf",&n);
    scanf("%s",d);
    scanf("%s",f);
    l=strlen(d);
    p=strlen(f);
    if(l!=p){printf("error");
               
               return 0;}
    for(i=0;d[i];i++){
        if(!(d[i]=='A'||d[i]=='T'||d[i]=='G'||d[i]=='C')){
            printf("error");
            
            return 0;}}
    for(i=0;f[i];i++){
        if(!(f[i]=='A'||f[i]=='T'||f[i]=='G'||f[i]=='C')){
            printf("error");
            
            return 0;}}
    for(i=0;d[i];i++){
        if(d[i]==f[i])m++;}
    b=m/l;
    if(b>=n)printf("yes");
    else printf("no");
    
    return 0;
}
int main(){
	double n;
	scanf("%lf",&n);
	char DNA[2][500];
	int i;
	int len[2];
	for(i=0;i<2;i++){
		scanf("%s",DNA[i]);
		len[i]=strlen(DNA[i]);
	}
	int j;
	int p=0;
	for(j=0;j<len[0];j++){
		if(DNA[0][j]==DNA[1][j]){
			p++;
		}	
	}
	int m=0;
	for(i=0;i<2;i++){
		for(j=0;j<len[i];j++){
			if(DNA[i][j]!='A'&&DNA[i][j]!='T'&&DNA[i][j]!='C'&&DNA[i][j]!='G'){
				m++;
			}	
		}
	}
	double bi;
	bi=((double)p)/((double)len[0]);
	if(len[0]!=len[1]||m!=0){
		printf("error");
	}else if(bi>n){
		printf("yes");
	}else{
		printf("no");
	}
return 0;
}
int main()
{	
	double a,c;
	char s[1000],as[1000];
	int m,n,t,i,b;
	scanf("%lf",&a);
	scanf("%s %s",s,as);
	t=0;
	for(i=0;s[i]!='\0';i++){
		if(s[i]!=65&&s[i]!=67&&s[i]!=71&&s[i]!=84){
			t=-1;
			break;
		}
	}
    for(i=0;as[i]!='\0';i++){
		if(as[i]!=65&&as[i]!=67&&as[i]!=71&&as[i]!=84){
			t=-1;
			break;
		}
	}
    m=strlen(s);
	n=strlen(as);
	if(m!=n){
		t=-1;
	}
	b=0;
	if(t==0){
		for(i=0;s[i]!='\0';i++){
			if(s[i]==as[i]){
				b++;
			}
		}
    	c=1.0*b/m;
    	if(c>a){
		   t=1;
		}
    	else{
		t=0;
		}
	}
	if(t==-1){
		printf("error\n");
	}
	if(t==0){
		printf("no\n");
	}
	if(t==1){
		printf("yes\n");
	}
    return 0;
}
int main (){
double n;
char a[MAX+1];
char b[MAX+1];
int p,q,i,j,x=0,y=0,l=0;
scanf ("%lf",&n);
scanf ("%s",a);
scanf ("%s",b);
p=strlen(a);
q=strlen(b);
if (p!=q){
printf ("error");
}
if (p==q){
for(i=0;a[i];i++){
if (a[i]!='A'&&a[i]!='T'&&a[i]!='C'&&a[i]!='G'){
printf ("error");
x++;
break;
}
}
for(j=0;b[j];j++){
if (b[j]!='A'&&b[j]!='T'&&b[j]!='C'&&b[j]!='G'&&x==0){
printf ("error");
y++;
break;
}
}
}
if (p==q&&x==0&&y==0){
for(i=0;i<p;i++){
if(a[i]==b[i]){
l++;
}
}
if (l*1.0/p>n){
printf("yes");
}else{
printf ("no");
}
}
return 0;
}
int main(){
    double rate,result;
    int p=2,num=0;
    scanf("%lf\n",&rate);
    char dna1[510],dna2[510];
    scanf("%s",dna1);
    scanf("\n");
    scanf("%s",dna2);
        for(int i=0;i<strlen(dna1);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')){
            p=0;
            break;
        }
    }
    if(strlen(dna1)!=strlen(dna2)){
        p=0;
    } 
    
    if(p==2){
        for(int i=0;i<strlen(dna1);i++){
            if(dna1[i]==dna2[i]){
                num++;
            }
        }
        result=1.0*num/strlen(dna1);
        if(result>=rate){
            printf("yes");
        }else printf("no");
    }
    if(p==0)
        printf("error");
    return 0;
}
int main(){
	double r;
	char a[501],b[501];
	scanf("%lf",&r);
	scanf("%s%s",a,b);
	int s1,s2,y=1,m=0;
	s1=strlen(a);
	s2=strlen(b);
	if(s1!=s2){
		printf("error");
	}else{
		for(int i=0;a[i];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]){m++;}
			}else{
				printf("error");y=0;
				break;
				
			}
		}
		if(m*1.0/s1>r&&y==1){
			printf("yes");
		}else if(y==1){
			printf("no");
		}
	}


  

return 0;
}
int main(){
	double k,j;
	int i,o;
	char a[500],b[500];
	scanf("%lf",&k);
	scanf("%s",&a);
	scanf("%s",&b);
	int l=strlen(a);
	int p=strlen(b);
	o=0;
	for(i=0;i<l;i++){
		if(a[i]!='A'&&a[i]!='T'&&a[i]!='C'&&a[i]!='G'){
			p+=500;
		}
		if(b[i]!='A'&&b[i]!='T'&&b[i]!='C'&&b[i]!='G'){
			p+=500;
		}
		if(a[i]==b[i])
			o++;
	}
	if(l!=p) printf("error");
	else {j=1.0*o/l;
		if(j>k) printf("yes");
		else printf("no");
	}
	return 0;
}
int main(){
	int i,a,b;
	int s=0;
	int t=1;
	double x,y,aa,ss;
	char sa[501];
	char sb[501];
	gets(sa);
	x=atof(sa);
	gets(sa);
	gets(sb);
	a=strlen(sa);
	b=strlen(sb);
	if(a!=b){
		t=0;
	}
	else if(a==b){
		for(i=0;i<a;i++){
			if((sa[i]!='A'&&sa[i]!='G'&&sa[i]!='T'&&sa[i]!='C')||(sb[i]!='A'&&sb[i]!='G'&&sb[i]!='T'&&sb[i]!='C')){
				t=0;
				break;
			}else if(sa[i]==sb[i]){
				s++;
			}
		}
	}
	aa=a;
	ss=s;
	y=ss/aa;
	if(t==0){
		printf("error");
	}else if(y>=x){
		printf("yes");
	}else if(y<=x){
		printf("no");
	}
	return 0;
}
int main(int argc, char* argv[])
{
	int b,c,i;
	double a,j=0;
	char s1[501],s2[501];
	scanf("%lf",&a);
	scanf("%s",&s1);
	scanf("%s",&s2);
	b=strlen(s1);
	c=strlen(s2);
	if(b!=c)
		printf("error");
	if(b==c)
	{
		for(i=0;i<b;i++)
		{
			if(s1[i]!='A'&&s1[i]!='T'&&s1[i]!='C'&&s1[i]!='G'&&s2[i]!='A'&&s2[i]!='T'&&s2[i]!='C'&&s2[i]!='G')
			{
				printf("error");
				j=-1;
				break;
			}
			else
			{
				if(s1[i]==s2[i])
					j++;
			}
		}
		if(j!=-1)
		{
			j=j/b;
			if(j>a)
				printf("yes");
			if(j<=a)
				printf("no");
		}
	}
	return 0;

}
int main()
{
   double a,f;   
   int d,e,k,i;
   char b[505];
   char c[505];
   k=0;
   scanf("%lf",&a);
   scanf("%s",b);
   scanf("%s",c);
   d=strlen(b);
   e=strlen(c);
   if(d!=e){
      printf("error");
   }else{
      for(i=0;i<d;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");
             k=1;
             break;
          }
       }
       if(k==0){
          for(i=0;i<d;i++){
              if(b[i]==c[i]){
                 k++;
              }
          }
          f=k/(d*1.0);
          if(f>a){
             printf("yes");
          }else{
             printf("no");
          }
        }
   }
   return 0;
}
int main()
{
	int i,x,m,c,r,k;
	double n,y;
	char a[502],b[502];
	x=0;
	scanf("%lf",&n);
	scanf("%s",a);
	scanf("%s",b);
	m=strlen(a);
	c=strlen(b);
	r=1;
k=1;
	if(m!=c){
		k=0;
	}
	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'){
			r=1;
		}
		else{
		r=0;
		}
		if(r==0||k==0){
			printf("error");
			break;
		}
	}
	if(r==1&&k==1){
    	for(i=0;i<m;i++){
			if(a[i]==b[i]){
				x++;
			}
		}
		y=1.0*x/m;
		if(y>n){
			printf("yes");
		}
		else{
			printf("no");
		}
	}
	return 0;
}
int main(){    
        int i,x,y;
        double n;
        double count=0.00;   
        char a[501];    
        char b[501];
   
        
        scanf("%lf\n",&n);    
        gets(a);
        gets(b);
        
                x=strlen(a);
                y=strlen(b);
                if(x!=y){
                        printf("error");
						return 0;
					
                }
                
        for (i=0; a[i]!='\0' ,b[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')){     
                        printf("error");   
                        return 0 ;
						break;
                }
        

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

        
                if (count/(x-1)>=n){
                        printf("yes");
                }else{
                        printf("no");
                }
        
        return 0;
}
int main(){
    int k=0,n;
    double m;
    char a[501],b[501];
    scanf("%lf",&m);
    scanf("%s\n%s",a,b);
    n=strlen(a);
    if(strlen(a)!=strlen(b)){printf("error");return 0;}
    
    for(int i=0;a[i]!='\0';i++){
        if(a[i]!='A'&&a[i]!='T'&&a[i]!='C'&&a[i]!='G'){printf("error");return 0;}
        if(b[i]!='A'&&b[i]!='T'&&b[i]!='C'&&b[i]!='G'){printf("error");return 0;}
       if(a[i]==b[i]){k++;} 
    }
    if(1.0*k/n>m){printf("yes");}
    else{printf("no");}
    return 0;
}
int main(){
    int i,n,k,b;
    char sz[520],zfc[520];
    double a,m;
    scanf("%lf\n",&a);
    scanf("%s\n",sz);
    scanf("%s\n",zfc);
    n=strlen(zfc);
    k=0;b=0;
    if(strlen(sz)!=n){
        printf("error");
        b=1;
    }
    else{
        for(i=0;i<n;i++){
            if((sz[i]!='A'&&sz[i]!='T'&&sz[i]!='G'&&sz[i]!='C')||(zfc[i]!='A'&&zfc[i]!='T'&&zfc[i]!='G'&&zfc[i]!='C')){
                printf("error");
                b=1;
                break;
            }
            else{if(sz[i]==zfc[i]){k++;}
                }
        }
    }
    if(b==0){
        m=1.0*k/n;
        if(m>a){printf("yes");}
        else{printf("no");}
    }
    return 0;
}
int main(){
    double n;
	scanf("%lf",&n);
	char a[502],b[502];
	int c,j,x=0;
	scanf("%s",a);
	scanf("%s",b);
	if (strlen(a)!=strlen(b)){c=0;}
	else  {
		for (j=0;a[j];j++){
			if ((a[j]!='A'&&a[j]!='T'&&a[j]!='C'&&a[j]!='G')||(b[j]!='A'&&b[j]!='T'&&b[j]!='C'&&b[j]!='G')){c=0;}
			else {
				if (a[j]==b[j]){
					x++;
				}
			}
			

		}
		
	}
	if (c==0){
		printf("error");
		return 0;
	}
	if (strlen(a)==strlen(b)&&1.00*x/strlen(a)>=n){printf("yes");}
		else {printf("no");}
	
	return 0;
}
//
//  main.cpp
//  hw
//
//  Created by ? ? on 12-12-16.
//  Copyright (c) 2012? ? ?. All rights reserved.
//



int main(int argc, const char * argv[])
{
    double rate;
    char gen1[500],gen2[500];
    cin>>rate>>gen1>>gen2;
    int len1=strlen(gen1),len2=strlen(gen2),S=0;
    if (len1!=len2) {
        cout<<"error"<<endl;
        return 0;
    }
    for (int i=0; i<len1; i++) {
        if ((gen2[i]!='A'&&gen2[i]!='T'&&gen2[i]!='C'&&gen2[i]!='G')||(gen1[i]!='A'&&gen1[i]!='T'&&gen1[i]!='C'&&gen1[i]!='G')) {
            cout<<"error"<<endl;
            return 0;
        }
        if (gen1[i]==gen2[i]) {
            S++;
        }
    }
    double R;
    R=(double)S/len1;
    if (R>=rate) {
        cout<<"yes"<<endl;
        return 0;
    }
    else
    {
        cout<<"no"<<endl;
        return 0;
    }
   return 0;
}
int main()
{
	double std,s;
	int i,n1,n2,t=0;
	char s1[500],s2[500];
	scanf("%lf",&std);
	scanf("%s",&s1);
	scanf("%s",&s2);
	n1=strlen(s1);
	n2=strlen(s2);
	if(n1!=n2)
	{
		printf("error");
		return 0;
	}
	for(i=0;i<n1;i++)
	{
		if(s1[i]!='A'&&s1[i]!='T'&&s1[i]!='C'&&s1[i]!='G')
		{
			printf("error");
			return 0;
		}
		if(s2[i]!='A'&&s2[i]!='T'&&s2[i]!='C'&&s2[i]!='G')
		{
			printf("error");
			return 0;
		}
	}
	for(i=0;i<n1;i++)
	{
		if(s1[i]==s2[i])
			t++;
	}
	s=(double)t/n1;
	if(s>std)
		printf("yes");
	else
		printf("no");
	return 0;
}
int main(){
	char x1[501],x2[501];
	double n;
	int i,y=0;
	scanf("%lf%s%s",&n,x1,x2);
	if(strlen(x1)!=strlen(x2))
	{
		printf("error");
		return 0;
	}
	for(i=0;x1[i]!='\0';i++)
	{
		if((x1[i]!='A'&&x1[i]!='T'&&x1[i]!='G'&&x1[i]!='C')||(x2[i]!='A'&&x2[i]!='C'&&x2[i]!='G'&&x2[i]!='T'))
		{
			printf("error");
			return 0;
		}
		if(x1[i]==x2[i])y++;
	}
	if((double)y/i>=n)printf("yes");
	else printf("no");
	return 0;
}
int main(){
	double z;
	char sz1[500];
	char sz2[500];
	int i,m,n;
	int x=1,y=0;
	double e;
	scanf("%lf",&z);
	scanf("%s",sz1);
	scanf("%s",sz2);
	m=strlen(sz1);
	n=strlen(sz2);
	for(i=0;sz1[i]!='\0';i++){
		if(sz1[i]=='A'||sz1[i]=='G'||sz1[i]=='C'||sz1[i]=='T'){
		continue;
}else if(sz1[i]!='A'||sz1[i]!='G'||sz1[i]!='C'||sz1[i]!='T'){
x=0;
break;
	}
}
     if((m!=n)||(x==0)){
	printf("error");
	}else if(m==n&&x==1){
		for(i=0;sz1[i]!='\0';i++){
			if(sz1[i]==sz2[i]){
			y++;
			}
		}
		e=1.0*y/m;
		if(e>z){
		printf("yes");
		           }else{
		printf("no");
		                   }
	                               }
	return 0;
}
int main()
{
	 char a[500],b[500];
	 double n,c=0,d,l,k;
	 int i,h=0;
	 
	 scanf("%lf",&n);
	 scanf("%s%s",a,b);
	 l=strlen(a);
	 k=strlen(b);
	 
	 for(i=0;i<l;i++)
	 {
		 if(k!=l||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");
			 h=1;
			 break;
		 }
		 else if(a[i]==b[i])
			 c=c+1;
	 }
	 d=c/l;
	 if(d>n)
		 printf("yes");
	 else if(h==0&&d<=n)
		 printf("no");
	 return 0;
}
int main()
{
	char s[2][501];
	double n;
	double sum=0,x,Len;
	int len,i,len2,j;
	scanf("%lf",&n);
	scanf("%s%s",s[0],s[1]);
	len=strlen(s[0]);
	len2=strlen(s[1]);
	if(len!=len2) 
	{
		printf("error");
		return 0;
	}
	else
	{
		for(i=0;i<2;i++){
			for(j=0;j<len;j++){
				if(s[i][j]!='A'&&s[i][j]!='T'&&s[i][j]!='G'&&s[i][j]!='C')
				{
					printf("error");
					return 0;
				}
				else continue;
			}
		}
	}


	for(i=0;i<len;i++)
	{
		if(s[0][i]==s[1][i]) sum=sum+1;
	}
	Len=(double)len;
	x=sum/Len;
	if(x>=n)
	{
		printf("yes");
	}
	else
	{
		printf("no");
	}
	return 0;
}