semeru/Code-Code-CloneDetection-POJ104 huggingface dataset:
/*
 * jiweijiuliaofa.cpp
 *
 *  Created on: 2012-10-17
 *      Author: ada
 */
int main ( )
{
	int n; // n???
	double a,b ; // a??? ?b?????
	cin >> n ;
	cin >> a >> b ; //???????????
	double x ,y ; //x??????????
	( double ) (x = b / a) ;
	for ( int i = 0 ; i < n - 1 ; i++) //??????????????~
	{
		cin >> a >> b ;
		( double )(y = b / a) ;
		if ( y > x)
		{
			if ( y - x > 0.05)
				cout << "better" << endl;
			else cout << "same" << endl;
		}
		else if ( x - y > 0.05)
			cout << "worse" << endl;
		     else cout << "same" << endl;

	}
	return 0 ;
}
int main(){
	int n,i;
	double old,xlf;
	scanf("%d",&n);
	int*zs=(int*)malloc(sizeof(int)*n);
	int*yx=(int*)malloc(sizeof(int)*n);
	
	
	for(i=0;i<n;i++){
		scanf("%d%d",&zs[i],&yx[i]);
	}
	for(i=0;i<n;i++){
		if(i==0){
			old=(double)yx[i]/zs[i];
		}else{
			xlf=(double)yx[i]/zs[i];
			if(xlf-old>0.05){
				printf("better");
				printf("\n");
			}else if(old-xlf>0.05){
				printf("worse");
				printf("\n");
			}else{
				printf("same");
				printf("\n");
			}
			
		}
	}
return 0;
}
int main()
{
	int i,n;
	int s[100],t[100];
	scanf("%d",&n);
	for(i=0;i<n;i++){
		scanf("%d %d",&s[i],&t[i]);
	}
	float k;
	k=(double)t[0]/s[0];
	for(i=1;i<n;i++){
		if((double)t[i]/s[i]-k>0.05)
		{
			printf("better\n");
		}
		else if((double)t[i]/s[i]-k<-0.05)
		{
			printf("worse\n");
		}
		else 
		{
			printf("same\n");
		}
	}
	return 0;
}
int main()
{
	int n;
	scanf("%d",&n);
	float all[100],fun[100],per[100];
	int i;
	for(i=0;i<n;i++){
		scanf("%f%f",&all[i],&fun[i]);
		per[i]=fun[i]/all[i];
	}
	for(i=1;i<n-1;i++){
		if(per[i]>=per[0]){
			if(per[i]-per[0]>0.05) {printf("better\n");}
			else {printf("same\n");}
		}
		if(per[i]<per[0]){
			if(per[0]-per[i]>0.05) {printf("worse\n");}
			else {printf("same\n");}
		}
	}
	if(per[n-1]>=per[0]){
			if(per[i]-per[0]>0.05) {printf("better");}
			else {printf("same");}
		}
		if(per[n-1]<per[0]){
			if(per[0]-per[i]>0.05) {printf("worse");}
			else {printf("same");}
		}
	return 0;
}
int main(){
int n,i,a[100],b[100];
double x,y;
	scanf("%d",&n);
	for(i=0;i<n;i++){
		scanf("%d%d",&a[i],&b[i]);
	}
	y=(float)b[0]/a[0];
	for(i=1;i<n;i++){

		x=(float)b[i]/a[i]-y;
		
		if(x>0.05){
			printf("better\n");
		}
		else if(x<-0.05){
			printf("worse\n");
		}
		else if(x<=0.05&&x>=-0.05){
			printf("same\n");
		}
	}
	return 0;
}
int main()
{
	int n,arr[100][2],i,a,b;
	double x,y;
	cin>>n;
	cin>>a>>b;
	x=b*100.0/a;
	for(i=0;i<n-1;i++)
	{
		cin>>arr[i][0]>>arr[i][1];
		y=arr[i][1]*100.0/arr[i][0];
		if(y-x>5)
		{
			cout<<"better"<<'\n';
		}
		else if(x-y>5)
		{
			cout<<"worse"<<'\n';
		}
		else
		{
			cout<<"same"<<'\n';
		}
	}
	return 0;
}
int main(){
int n,i,t=0;
char xm[300][10];
float tw[300];
double z[300];
double yx[300];
double x[300];

scanf("%d",&n);
for(i=0;i<n;i++){
    scanf("%lf",&z[i]);
    scanf("%lf",&yx[i]);
    x[i]=yx[i]/z[i];
}


for(i=1;i<n-1;i++){
    if(x[0]-x[i]>0.05){
	   
	   printf("worse");
	   printf("\n");
	}else if(x[i]-x[0]>0.05){
	   
	   printf("better");
	   printf("\n");
	}else{
	   
	   printf("same");
	   printf("\n");
	}
 
	
	
}

	   
	  if(x[0]-x[n-1]>0.05){
	   
	   printf("worse");

	}else if(x[n-1]-x[0]>0.05){
	   
	   printf("better");
	
	}else{
	   
	   printf("same");
	 
	}
	 


return 0;
}
int main(){
    int n,i,A[100],B[100];
    double C[100],D[100];
    scanf("%d",&n);
    for(i=0;i<n;i++){
                     scanf("%d%d",&A[i],&B[i]);
                    if(i==0) C[0]=1.0*B[0]/A[0];
                     if(i>=1){C[i]=1.0*B[i]/A[i];}
                     D[i]=C[i]-C[0];
                     if(i>=1&&D[i]>0.05)
                     {printf("better\n");}
                     
                         if(i>=1&&D[i]<-0.05){printf("worse\n");}
                         if(i>=1&&D[i]>=-0.05&&D[i]<=0.05) printf("same\n");
                                            }
  
    return 0;
}
int main(){
int n,i;
double x,y[100];
int total[100],youxiao[100];
scanf("%d",&n);
for(i=0;i<n;i++){
	scanf("%d %d",&total[i],&youxiao[i]);
}
x=1.0*youxiao[0]/total[0];
for(i=1;i<n;i++){
	y[i-1]=1.0*youxiao[i]/total[i];
}
for(i=0;i<n-1;i++){

if((y[i]-x)>0.05){
	printf("better\n");
}
if((x-y[i])>0.05){
	printf("worse\n");
}
if((x-y[i])<=0.05&&(y[i]-x)<=0.05){
	printf("same\n");
}
}

	return 0;
}
int main()
{
	int N,i;
	cin>>N;
	const int n=N;
	float a[n],b[n],q,p;
	for(i=0;i<=N-1;i=i+1){
		cin>>a[i]>>b[i];
	}
	q=(b[0]/a[0]);
	for(i=1;i<=N-1;i=i+1){
		p=(b[i]/a[i]);
		if(p-q>0.05){cout<<"better"<<endl;}
		else if(q-p>0.05){cout<<"worse"<<endl;}
		else{cout<<"same"<<endl;}
	}
	return 0;


}
int main (){
    int n,i,sz[LEN],szz[LEN];
    float s[LEN],b;
    scanf("%d",&n);
    for(i=0;i<n;i++){
                     scanf("%d%d",&szz[i],&sz[i]);
                     s[i]=1.0*sz[i]/szz[i];
                     }
                     for(i=1;i<n;i++){
                                      b=s[i]-s[0];
                                      if(b>0.05){
                                      printf("better\n");}
                                      else if(b<-0.05){
                                      printf("worse\n");}
                                      else{
                                      printf("same\n");}
                                      }
    
    
    return 0;
}
int main()
{
	int n,i;
	float a,b,e,f;
	scanf("%d",&n);
	scanf("%d%d",&a,&b);
	e=b/a;
	for(i=1;i<n;i++)
	{
		scanf("%d%d",&a,&b);
		f=b/a;
		if((f-e)>0.05)
			printf("better\n");
		else if((e-f)>0.05)
			printf("worse\n");
		else
			printf("same\n");
	}	
	return 0;
}
int main(){
int n,i,j;
double sz[100][2];
scanf("%d",&n);
for(i=0;i<n;i++){
	for(j=0;j<2;j++){
scanf("%lf",&sz[i][j]);
	}
}
for(i=1;i<n;i++){
	if((sz[0][1]/sz[0][0])-(sz[i][1]/sz[i][0])>0.05){
printf("worse\n");	
	}
	else if((sz[i][1]/sz[i][0])-(sz[0][1]/sz[0][0])>0.05){
printf("better\n");
	}
	else{
		printf("same\n");
	}

}
return 0;
}
int main(int argc, char* argv[])
{ int n,a[100],z[100];
	int i;
	
scanf("%d",&n);
scanf("%d %d",&z[0],&a[0]);
for(i=1;i<n;i++){
	scanf("%d %d",&z[i],&a[i]);
	if(((float)(a[i])/z[i]-(float)(a[0])/z[0])>0.05){
		printf("better\n");
		}
	else if(((float)(a[0])/z[0]-(float)(a[i])/z[i])>0.05){
		printf("worse\n");
		}
    else{
		printf("same\n");
		}


}

	return 0;
}
int main()
{
	int i,n,zs,yx;
	double x,y,cha;
	scanf("%d",&n);
	for(i=0;i<n;i++)
	{
		scanf("%d%d",&zs,&yx);
		if(i==0)
		{
			x=100.0*yx/zs;
		}
		else
		{
			y=100.0*yx/zs;
			cha=x-y;
			if(cha>5)
			{
				printf("worse\n");
			}
			else if(cha<-5)
			{
				printf("better\n");
			}
			else
			{
				printf("same\n");
			}
		}
	}

	return 0;
}
int main(){
	int n,i;
	double lx1,lx2[1000],br1,br2[1000],yx1,yx2[1000];
	scanf("%d",&n);
	scanf("%lf %lf",&br1,&yx1);
	lx1=yx1/br1;
	for(i=0;i<n-1;i++){
		scanf("%lf %lf",&br2[i],&yx2[i]);
		lx2[i]=yx2[i]/br2[i];
	}
	for(i=0;i<n-1;i++){
		if(lx2[i]-lx1>0.05){
			printf("better\n");
		}else if(lx1-lx2[i]>0.05){
			printf("worse\n");
		}else if((lx1-lx2[i]<=0.05&&lx1-lx2[i]>=0)||(lx2[i]-lx1<=0.05&&lx2[i]-lx1>=0)){
			printf("same\n");
		}
	}
	return 0;
}
struct jiegou
{
       double renshu;
       double youxiao;
       };
int main()
{
    int n;
    scanf("%d",&n);
    struct jiegou abc[20];
    int i=0;
    for(i=0;i<n;i++){
                     scanf("%lf%lf",&abc[i].renshu,&abc[i].youxiao);
                     }
                     
    for(i=1;i<n;i++){
                                          if((abc[0].youxiao/abc[0].renshu)<(abc[i].youxiao/abc[i].renshu-0.05))   printf("better\n");
                                          else if((abc[0].youxiao/abc[0].renshu)>(abc[i].youxiao/abc[i].renshu+0.05))   printf("worse\n");
                                          else printf("same\n");
                                          }
                                          
                                          return 0;
                                          }
int main()
{
	float a1,g1,r1,a[1000],g[1000],r[1000];
	int n,i;
	scanf("%d",&n);
	n=n-1;
	scanf("%f %f",&a1,&g1);
	for(i=0;i<n;i++)
	{
		scanf("%f %f",&a[i],&g[i]);
	}
	r1=g1/a1;
	for(i=0;i<n;i++)
	{
		r[i]=g[i]/a[i];
		if((r[i]-r1)>0.05)
		{
			printf("better\n");
		}
		else if((r[i]-r1)<(-0.05))
		{
			printf("worse\n");
		}
		else
		{
			printf("same\n");
		}
	}
}
int main()
{
	int n;
	scanf("%d",&n);
	int a,b;
	scanf("%d%d",&a,&b);
	double p,q;
	p=1.0*b/a;
	int i;
	for(i=1;i<=n-1;i++){
		int x,y;
		scanf("%d%d",&x,&y);
		q=1.0*y/x;
		if(i==n-1){
			if(q-p>0.05){
				printf("better");
			}else if(p-q>0.05){
				printf("worse");
			}else{
				printf("same");
			}
		}else{
			if(q-p>0.05){
				printf("better\n");
			}else if(p-q>0.05){
				printf("worse\n");
			}else{
				printf("same\n");
			}
		}
	}
	return 0;
}
//********************************
//*???????
//*??? ?? 1300012814  **
//*???2013.09,18  **
//********************************
int main()
{
	int n;
	double a, b, p, c, d, q;

	cin >> n;
	cin >> a >> b;
	p = b / a * 100;
	for (int i=1; i < n; i++ )
	{
		cin >> c >> d;
		q = d / c *100;
	    if (q - p > 5)
			cout << "better" <<endl;
		else 
			if (p - q > 5)
				cout << "worse" <<endl;
			else cout << "same" <<endl;
	}

return 0;
}
main()
{
  	int n;
  	scanf ("%d",&n);
  	int i;
  	double a[500],b[500];
  	for(i=0;i<n;i++)
  	{
	  scanf ("%d %d",&a[i],&b[i]);			
	}
    double c[500];
    char r[500][500];
    for (i=0;i<n;i++)
    {
		c[i]=b[i]/a[i];
	
	}
	for (i=1;i<n;i++)
	{
		if (i<n)
	  {
			if ((c[i]-c[0])>0.05)
	   {
	      printf ("better\n");
	   }
	   else if ((c[0]-c[i])>0.05)
	    {
		 printf ("worse\n");
		}
	   else 
	   {
	      printf ("same\n");
	   }	  
	  }
	  else 
	  {
	   	if ((c[i]-c[0])>0.05)
	   {
	     printf ("better");
	   }
	   else if ((c[0]-c[i])<0.05)
	    {
		 printf ("worse");
		}
	   else 
	   {
	     printf ("same");
	   }	  
	  }
	  
	  
	}
	

}
main()
{
    int n,i;
    float a[100],b[100],c[100];
    scanf("%d",&n);
    for(i=0;i<n;i++)
    {
        scanf("%f",&a[i]);
        scanf("%f",&b[i]);
        c[i]=b[i]/a[i];
    }
    for(i=1;i<n;i++)
    {
        if(c[i]-c[0]>0.05)
        printf("better");
        else if(c[i]-c[0]<-0.05)
        printf("worse");
        else
        printf("same");
        printf("\n");
    }
}
int main()
{
	int n , i ;
	double y , a , b , a1 , b1;

	cin >> n >> a >> b;

	for (i = 1; i <= n - 1; i ++)
	{
		cin >> a1 >> b1;
		
		y = b1 / a1 - b / a;
		
		if (y > 0.05)
			cout << "better" << endl;
		
		else if (y < -0.05)
			cout << "worse" << endl;
		
		else
			cout << "same" << endl;
	}
	return 0;
}
int main()
{
	int n, i;
	float k, p, q;
	scanf("%d%f%f",&n, &p, &q);
	k=q/p;
	for(i=0;i<n-1;i++)
	{
		float a, b;
		scanf("%f%f",&a, &b);
		if(b/a-k>0.05) printf("better\n");
		else if(k-b/a>0.05) printf("worse\n");
		else printf("same\n");
	}
	return 0;
}
int main(){
	int n,i;
	scanf("%d",&n);
    int all[100],health[100];
	double rate[100];
	for(i=0;i<n;i++){
		scanf("%d %d",&all[i],&health[i]);
		rate[i]=1.0*health[i]/all[i];
	}
    for(i=1;i<n-1;i++){
		if(rate[i]>rate[0]+0.05){
			printf("better\n");
		}else if(rate[i]<rate[0]-0.05){
	        printf("worse\n");
		}else{
            printf("same\n");
		}
	}
        if(rate[n-1]>rate[0]+0.05){
			printf("better");
		}else if(rate[n-1]<rate[0]-0.05){
	        printf("worse");
		}else{
            printf("same");
		}

	return 0;
}
int main(){
	int n,a,b,s,l,i;
	double c;
	scanf("%d%d%d",&n,&a,&b);
	c=1.0*b/a;
    for(i=0;i<n-1;i++){
		scanf("%d%d",&s,&l);
		double f=1.0*l/s;
		if(f-c>0.05){
			printf("better\n");
		}else if(f-c>-0.05){
			printf("same\n");
		}else{
			printf("worse\n");
		}
	}
	return 0;
}
int main()
{ 
	int n=0;
	double x=0,y=0,a=0,b=0;
	cin>>n>>x>>y;
	for(int i=1;i<=n-1;i++)
	{
		cin>>a>>b;
		if(b/a-y/x>0.05)
		{
			cout<<"better"<<endl;
		}
		else if(y/x-b/a>0.05)
		{
			cout<<"worse"<<endl;
		}
		else
		{
			cout<<"same"<<endl;
		}
	}
	return 0;
}
struct way
{
	double sum;
	double effect;
	double rate;
} wine, improve[100];
void compare(double a,double b)
{
	if(fabs(a-b)<0.05)
	{
		cout<<"same"<<endl;
	}
	else if(a>b)
	{
		cout<<"worse"<<endl;
	}
	else
	{
		cout<<"better"<<endl;
	}
}
int main()
{
	int n,i;
	cin>>n;
	cin>>wine.sum>>wine.effect;
	wine.rate=wine.effect/wine.sum;
	for(i=0;i<n-1;i++)
	{
		cin>>improve[i].sum>>improve[i].effect;
		improve[i].rate=improve[i].effect/improve[i].sum;
		//cout<<improve[i].sum<<improve[i].effect<<improve[i].rate;
	}
	for(i=0;i<n-1;i++)
		compare(wine.rate,improve[i].rate);
	return 0;
}
int main()
{
    int n;
    cin>>n;
    double a[n],b[n],c[n];
    cin>>a[0]>>b[0];
    c[0]=b[0]/a[0];
    int i;
    for(i=1;i<n;i++){
    cin>>a[i]>>b[i];
   c[i]=b[i]/a[i];
   if(c[i]-c[0]>0.05) cout<<"better"<<endl;
   if(c[i]-c[0]<-0.05) cout<<"worse"<<endl;
   if(c[i]-c[0]>-0.05&&c[i]-c[0]<0.05) cout<<"same"<<endl;
                     }
   
   
    
}
int main()
{
	int n,i;
	scanf("%d",&n);
	double a,b,c;
	scanf("%lf%lf",&a,&b);
	c=b/a;
	for(i=0;i<n-1;i++){
		double j,k,l;
		scanf("%lf%lf",&j,&k);
		l=k/j;
		if(c-l>0.05)
			printf("worse\n");
		if(c-l<-0.05)
			printf("better\n");
		if(c-l<0.05&&c-l>-0.05)
			printf("same\n");
	}
	return 0;
}
int main()
{
	int n,i;
	float a[100],p,q,standard;//????
	cin>>n;
	cin>>p>>q;
	standard=q/p;//?????
	for(i=0;i<n-1;i++)//??????
	{
		cin>>p>>q;
		a[i]=q/p;
	}
	for(i=0;i<n-1;i++)//???????????
	{ if(a[i]-standard>0.05) cout<<"better"<<endl;
		else if(standard-a[i]>0.05) cout<<"worse"<<endl;
			else cout<<"same"<<endl;
	}

	return 0;
}
int main()
{
	int n,i;
	int a[100],b[100];
	double k[100]; 
	scanf("%d",&n);
	for(i=0;i<n;i++)
	{
		scanf("%d%d",&a[i],&b[i]);
		k[i]=(double)b[i]/a[i];
	}
	for(i=1;i<n;i++)
	{
		if((k[i]-k[0])>0.05)
		{
			printf("better");
			printf("\n");
		}
		if((k[0]-k[i])>0.05)
		{
			printf("worse");
			printf("\n");
		}
		if((k[i]-k[0])<=0.05&&(k[0]-k[i])<=0.05)
		{
			printf("same");	
			printf("\n");
		}
	}

	return 0;
}
int main()
{
	double n,a,b,c,d,m;
	scanf("%lf%lf%lf\n",&n,&a,&b);
	m=b/a;
	while(n>1){
		scanf("%lf%lf\n",&c,&d);
		a=m-d/c;
		if(a>0.05)
			printf("worse\n");
		if(a<-0.05)
			printf("better\n");
		if(a<=0.05&&a>=-0.05)
			printf("same\n");
		n=n-1;
	}
	return 0;
}
int main()

{
    int n, i,m=0, d;
	float j,j1,j2,q[100],q1[100],q2[100];
	scanf("%d",&n);
	scanf("%f %f",&j1,&j2);
	j=j2/j1;
	for(i=0;i<n-1;i++){
		scanf("%f %f",&q1[i],&q2[i]);
		q[i]=q2[i]/q1[i];
		if(q[i]-j>0.05)
			printf("better\n");
		else if(j-q[i]>0.05)
			printf("worse\n");
		else printf("same\n");
    
	}
   	return 0;
}
// * * * * * * * * * * * * * * *
// *????????           *
// *??????  1300013011   *
// *???2013.9.30            *
// * * * * * * * * * * * * * * *


int main()
{
	int n, a1, a2, b1, b2;

	double x, y, m;

	cin >> n;

	cin >> a1 >> a2;

    x = a2;

	x = x / a1;

	for (int i = 2; i <= n; i++)
	
	{
		cin >> b1 >> b2;

		y = b2;

		y = y / b1;

        m = x - y;

		if (m < -0.05)

			cout << "better" << endl;

		else

			if (m > 0.05)

				cout << "worse" << endl;

			else

				cout << "same" << endl;
	}

	return 0;
}
int main()
{
	int n,a1,a2,b1,b2;
	scanf("%d%d%d",&n,&a1,&a2);
	float x,y;
	x=(float)a2/a1;
	for(int i=0;i<n-1;i++){
		scanf("%d%d",&b1,&b2);
		y=(float)b2/b1;
		if((y-x)>0.05){
			printf("better\n");
		}
		else if((x-y)>0.05){
			printf("worse\n");
		}
		else{
			printf("same\n");
		}
	}
	return 0;
}
int main(){
  int n;
  scanf("%d",&n);
  int i,x,y;
  double a,b;
  scanf("%d%d",&x,&y);
    a=1.0*y/x;
  for(i=2;i<=n;i++){
    scanf("%d%d",&x,&y);
	b=1.0*y/x;
	  if((a-b)>0.05){
	    printf("worse\n");
	  }
	  else if((b-a)>0.05){
	    printf("better\n");
	  }
	  else{
	    printf("same\n");
	  }
	}
  return 0;
}
int main(){
int n,i,x,y;
double b,c;
struct s
 {
  int x;
  int y;
 };
struct s sz[100];
scanf("%d",&n);
for(i=0;i<n;i++)
{
	scanf("%d%d",&x,&y);
	sz[i].x=x;
	sz[i].y=y;
}
b=sz[0].y *1.0 /sz[0].x; 
for(i=1;i<n;i++)
{
    c=sz[i].y *1.0 /sz[i].x; 
    if (c-b>0.05)
	{
        printf ("better\n");
	}
    else if (b-c>0.05)
	{
        printf("worse\n");
	}
	else
	{
		printf("same\n");
	}

}
return 0;
}
int main(){
	int n;
	cin>>n;
	float a[n],b[n],x[n],s;
	cin>>a[0]>>b[0];
	x[0]=b[0]/a[0];
	for(int i=1;i<n;i++){
		cin>>a[i]>>b[i];
		x[i]=b[i]/a[i];
		s=x[i]-x[0];
		if(s>0.05) cout<<"better"<<endl;
		else if(s<-0.05) cout<<"worse"<<endl;
		else cout<<"same"<<endl;
	}
	return 0;
}
int main(){
	int n,i,j,sz[1000],sx[1000];
	scanf("%d",&n);
	double sum;
	for(i=0;i<n;i++){
		scanf("%d %d",&sz[i],&sx[i]);
		

	}
	for(j=1;j<n;j++){
		if(((double)sx[j]/(double)sz[j]-(double)sx[0]/(double)sz[0])>0.05){
			printf("better\n");
		}
		else if(((double)sx[0]/(double)sz[0]-(double)sx[j]/(double)sz[j])>0.05){
			printf("worse\n");
		}
		else{
			printf("same\n");
		}
	}
	return 0;
}
int main(){
    int n,i,j,k;
    int zong[100],you[100];
    scanf("%d\n",&n);
    for(i=0;i<n;i++){
        scanf("%d %d",&zong[i],&you[i]);
        if(i>=1){
            if(you[i]*1.0/zong[i]-you[0]*1.0/zong[0]>0.05){
                printf("better\n");
            }else if(you[0]*1.0/zong[0]-you[i]*1.0/zong[i]>0.05){
                printf("worse\n");
            }else {
                printf("same\n");
            }
        }
    }
    
    return 0;
}
int main(){
	int n,i;
	scanf("%d",&n);
	double sz[1000],sa[1000];
	for(i=0;i<n;i++){
       scanf("%lf %lf",&sz[i],&sa[i]);
	if(i>0){
		if(sa[i]/sz[i]-sa[0]/sz[0]>0.05){
			printf("better\n");
		}
		else if(sa[0]/sz[0]-sa[i]/sz[i]>0.05){
			printf("worse\n");
		}
		else{
			printf("same\n");
		}
	}
	}
	return 0;
}
int main()
{
   int n,sz[1000][2],i,j;
   double x,y;
   scanf("%d",&n);
   for(i=0;i<n;i++){
   for(j=0;j<2;j++){
   scanf("%d",&sz[i][j]);}}
   x=1.0*sz[0][1]/sz[0][0];
   for(i=1;i<n;i++){
   for(j=0;j<2;j++){
   y=1.0*sz[i][1]/sz[i][0];}
   if(y-x>0.05){printf("better\n");}
   else if(x-y>0.05){printf("worse\n");}
   else{printf("same\n");}}
   return 0;
}
int main ( )
{
    int n,a[100][3],i,j;
    float b;
    scanf("%d",&n);
    for(i=0;i<n;i++){
    for(j=0;j<2;j++){
    scanf("%d",&a[i][j]);}}
    b=100.0*(float)a[0][1]/(float)a[0][0];
    for(i=1;i<n;i++){
    if((100.0*(float)a[i][1]/(float)a[i][0]-b)>5){
    printf("better\n");}
    if((100.0*(float)a[i][1]/(float)a[i][0]-b)<=5&&(b-100.0*(float)a[i][1]/(float)a[i][0])<=5){
    printf("same\n");}
    if((100.0*(float)a[i][1]/(float)a[i][0]-b)<-5){
    printf("worse\n");}}
    return 0;
}
struct patient
{
	int all;
	int part;
	double cent;
	char s[7];
}p[M];
int main()
{
	int n,i;
	scanf("%d",&n);
	for(i=0;i<n;i++)
	{
		scanf("%d%d",&p[i].all,&p[i].part);
		p[i].cent=(double)p[i].part/(double)p[i].all;
	}
	for(i=1;i<n;i++)
	{
		if((p[i].cent-p[0].cent)>0.05)
			strcpy(p[i].s,"better");
		else if((p[0].cent-p[i].cent)>0.05)
			strcpy(p[i].s,"worse");
		else
			strcpy(p[i].s,"same");
	}
	for(i=1;i<n;i++)
		printf("%s\n",p[i].s);
	return 0;
}
int main()
{
	int i,n;
	float a,b,ji,c[100],d[100],qita[100];
	scanf("%d",&n);
	scanf("%d%d",&a,&b);
	ji=b/a;
	for(i=0;i<n-1;i++){
		scanf("%f%f",&c[i],&d[i]);
		qita[i]=d[i]/c[i];
	}
	for(i=0;i<n-1;i++){
		if(qita[i]-ji>0.05){
			printf("better\n");
		}else if(ji-qita[i]>0.05){
			printf("worse\n");
		}else{
			printf("same\n");
		}
	}
	return 0;
}
int main(){
	int sz[500][2];
	int n,i,j;
	float a;
	scanf("%d",&n);
	for(i=0;i<n;i++){
		for(j=0;j<2;j++){
			scanf("%d",&sz[i][j]);
		}
	}
	a=((float)(sz[0][1])/(sz[0][0]));
	for(i=1;i<n;i++){
		if(((float)(sz[i][1])/(sz[i][0]))<(a-0.05))
		{printf("worse\n");}else if
      			(((float)(sz[i][1])/(sz[i][0]))>(a+0.05))
		{printf("better\n");}
		else{printf("same\n");}}

	
	return 0;
}
int main()
{
	int i,n;
	double k,s,g[200];
	cin>>n;
	for(i=1;i<=n;i++)
	{
		cin>>k;
		cin>>s;
		g[i]=s/k;
	}
	for(i=2;i<=n;i++)
	{
		if(g[1]-g[i]>0.05)
			cout<<"worse"<<endl;
		if(g[i]-g[1]>0.05)
			cout<<"better"<<endl;
		if(g[i]-g[1]<=0.05&&g[i]-g[1]>=(-0.05))
			cout<<"same"<<endl;
	}
	return 0;
}
int main()
{
	int n,i,sz[100][100],j;
	double a,b;
	scanf("%d",&n);
	for(i=0;i<n;i++){
		for(j=0;j<2;j++){
			scanf("%d",&sz[i][j]);}}
    a=1.0*sz[0][1]/sz[0][0];
	for(i=1;i<n;i++){
	b=1.0*sz[i][1]/sz[i][0]-a;
	if(b>0.05){printf("better\n");}
	if(b<-0.05){printf("worse\n");}
	if(b<0.05&&b>-0.05){printf("same\n");}}
return 0;
}
int main()
{
	int x1, x2, y1[10000],y2[10000],n, flag[10000];
	double x, y[10000];
	double temp;
	scanf("%d", &n);
	int i;
	for(i=0;i<n;i++)
	{
		if(i==0)
		{
			scanf("%d %d", &x1, &x2);
			x=100*(x2)/(x1);
		}
		else
		{
			scanf("%d %d", &y1[i], &y2[i]);
			y[i]=100*(y2[i])/(y1[i]);
			temp=y[i]-x;
			if(5<=temp)
				flag[i]=2;
			else if(temp<=(-5))
				flag[i]=0;
			else 
				flag[i]=1;
		}
	}
	for(i=1;i<n;i++)
	{
		if(flag[i]==2)
			printf("better\n");
		else if(flag[i]==1)
			printf("same\n");
		else if(flag[i]==0)
			printf("worse\n");
	}
	return 0;
}
int main(){
	double n,i;
	scanf("%lf",&n);
	double x;
	double m,p;
	scanf("%lf %lf",&m,&p);
	x=p/m;
	for(i=0;i<n-1;i++){
		double a,b;
		scanf("%lf %lf",&a,&b);
        double y;
		y=b/a;
		if(y-x>0.05){
			printf("better\n");
		}else if(x-y>0.05){
			printf("worse\n");
		}else if((y-x<=0.05)&&(y-x>=-0.05)){
			printf("same\n");
		}
	}
	return 0;
}
int main()
{
	int n,i;
	int a[100][100];
	float b[100];
	scanf("%d",&n);
	for(i=0;i<n;i++){
		scanf("%d%d",&a[i][0],&a[i][1]);
		b[i]=(float)a[i][1]/a[i][0];
	}
	for(i=1;i<n;i++){
		if(b[0]-b[i]>0.05){
			printf("worse");
			
		}
		else if(b[i]-b[0]>0.05){
			printf("better");
		}
		else{
			printf("same");
		}
		printf("\n");
	}
	return 0;
}
void judge(double,double);//??
double standard;//???????
const double m=0.05;//??
int main()
{
  int n,i;
  double sum,useful;
  cin>>n;
  cin>>sum>>useful;
  standard=useful/sum;
  for(i=2;i<=n;i++)
  {
    cin>>sum>>useful;
	judge(sum,useful);
  }
  return 0;
}
void judge(double sum,double useful)
{
  double rate;
  rate=useful/sum;
  if(abs(rate-standard)<=m)
	  cout<<"same"<<endl;
  else if(rate-standard>m)
	  cout<<"better"<<endl;
  else
	  cout<<"worse"<<endl;
}
struct p
{
    char name[100];
    float t;
    int judge;
};
int main()
{
    int m,x,y;
    scanf("%d",&m);
    scanf("%d %d",&x,&y);
    double c,d;
    c=(double)y/x;
    int a1,a2;
    for(int i=0;i<=m-2;i++)
    {
        scanf("%d %d",&a1,&a2);
        d=(double)a2/a1;
        if(c-d>0.05)
        {
            printf("worse\n");
        }
        else if(d-c>0.05)
        {
            printf("better\n");
        }
        else
        {
            printf("same\n");
        }
    }
}
int main()
{
	int n, i, j, a[100][2];
	double p0, p;
	scanf("%d", &n);
	for(i=0; i<n; i++){
		for(j=0; j<2; j++){
			scanf("%d", &a[i][j]);
			p0 = (double)a[0][1] / a[0][0];
		}
	}

    for(i=1; i<n; i++){
			p = (double)a[i][1] / a[i][0];
			if((p-p0) > 0.05){
				printf("better\n");
			}
			else if((p0-p) > 0.05){
				printf("worse\n");
			}
			else{
				printf("same\n");
			}
	}

	return 0;
}
int main()
{
	int n,i,j;
	double a[100],b[100],c[100],p,q,ww;
	scanf("%d",&n);
	scanf("%lf%lf",&p,&q);
	ww=q/p;
	for(i=0;i<n-1;i++)
	{
	    scanf("%lf%lf",&(a[i]),&(b[i]));
		c[i]=b[i]/a[i];
		if(c[i]-ww>0.05)
			printf("better\n");
		
		
		else	if(ww-c[i]>0.05)
			
			    printf("worse\n");
			else	if(ww-c[i]<=0.05||c[i]-ww<=0.05)
					printf("same\n");
			
		
	}

		
	return 0;
}
main()
{
      int i,j,m,n,g;
      double k,k1,k2,temp;
      scanf("%d",&n);
      scanf("%d %d",&i,&j);
      k=1.0*j/i;
      k1=k+0.05;
      k2=k-0.05;
      for(g=1;g<n;g++)
      {
                      scanf("%d %d",&i,&j);
                      temp=1.0*j/i;
                      if(temp<k2) printf("worse\n");
                      else if(temp>k1) printf("better\n");
                      else printf("same\n");
      }
      
}
int main ()
{
	int n, i;          //n??????
	double a[10000][2];      //???????????? 
	double x, y;
	cin>>n;
	for(i=0; i<n; i++)
		cin>> a[i][0] >> a[i][1]; //????
    x = a[0][1]/a[0][0];
	for(i=1; i<n; i++)
	{
		y = a[i][1]/a[i][0];
		if(y-x>0.05)
		{
			cout<<"better"<<endl;
	    }
		else if(x-y>0.05)
		{
			cout<<"worse"<<endl;
		}
		else
		{
			cout<<"same"<<endl;
		}
	}
	return 0;
}
int main(){
	int sz[100],sz1[100],n;
	float sz2[100];
	scanf("%d",&n);

	int x,y;
	float z;
	scanf("%d%d",&x,&y);
	z = (float)y/x;

	int i=0;
	while(i<n-1){
		scanf("%d%d",&(sz[i]),&(sz1[i]));
		sz2[i]=(float)(sz1[i])/(sz[i]);
		i++;
	}

	i=0;
	while(i<n-1){
		if((sz2[i]-z)>0.05){
			printf("better\n");
		}else if((z-sz2[i])>0.05){
			printf("worse\n");
		}else{
			printf("same\n");
		}
		i++;
	}

	return 0;

}