semeru/Code-Code-CloneDetection-POJ104 huggingface dataset:
int main () {
	int n,i,j;
	double p;
	int a[100][2];
	double s[100];
	scanf ("%d",&n);
	for (i=0;i<n;i++){
		for (j=0;j<2;j++){
			scanf ("%d",&a[i][j]);
		}
	}
    for (i=0;i<n;i++){
		s[i]=a[i][1]*1.0/a[i][0];
		p=s[0];
	}
	for (i=1;i<n;i++){
		if (s[i]-p>0.05){
			printf ("better\n");
		}if (p-s[i]>0.05){
			printf ("worse\n");
		}if (s[i]-p<=0.05&&p-s[i]<=0.05){
			printf ("same\n");
		}
	}
	return 0;
}
//?????????? 

int main()
{
	int n,i;
	cin>>n;

	struct Test       //???????????????????????????
	{
		double total;
		double eff;
		double rate;
	}test[100];

	for(i=0;i<n;i++)  //????????
	{
		cin>>test[i].total>>test[i].eff;
		test[i].rate=test[i].eff/test[i].total;
	}

	for(i=1;i<n;i++)  //????????????????????
	{
		if(test[i].rate-test[0].rate>0.05)
			cout<<"better"<<endl;

		else if(test[0].rate-test[i].rate>0.05)
			cout<<"worse"<<endl;

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

  for(i=0; i<n; i++)
	  scanf("%lf %lf",&a[i],&b[i]);
  for(i=1; i<n; i++)
  {
    if(b[i]/a[i]-b[0]/a[0]>0.05)
		printf("better\n");
	else if(b[0]/a[0]-b[i]/a[i]>0.05)
		
			printf("worse\n");
		else
			printf("same\n");
  }

  
 
  
  return 0;
}
main()
{
  int n,i,a1,a2,b[100][2];
  float m,c[100];
  scanf("%d",&n);
  scanf("%d %d",&a1,&a2);
  m=((float)a2)/((float)a1);
  for(i=0;i<n-1;i++)
  { scanf("%d %d",&b[i][0],&b[i][1]); 
    c[i]=((float)b[i][1])/((float)b[i][0]); }
  for(i=0;i<n-1;i++)
  { if(fabs(c[i]-m)<=0.05)
    { printf("same\n"); }
    else
    { if((c[i]-m)>0.05)
      { printf("better\n"); }
      else
      { printf("worse\n"); }
    }
  }
}
int main()
{
    int n,i;
    scanf("%d",&n);
    float a[n],b[n],s;
    scanf("%f %f",&a[0],&b[0]);
    s=b[0]/a[0];
    for(i=1;i<n;i++)
    {
      scanf("%f %f",&a[i],&b[i]);
      if(fabs(b[i]/a[i]-s)>0.05)
      {
        if(b[i]/a[i]-s>0)
        printf("better\n");
        else
        printf("worse\n");
      }
      else
      printf("same\n");
    }
    getchar();
    getchar();
}
int main()
{
	int n,i,a[100],b[100];
	double c[100];
	scanf("%d",&n);
	for(i=0;i<n;i++)
	{
		scanf("%d%d",&a[i],&b[i]);
	}
	for(i=0;i<n;i++)
	{
		c[i]=(double)b[i]/a[i];
	}
	for(i=1;i<n;i++)
	{
		if(c[i]-c[0]>0.05)
		{
			printf("better");
		}
		else if(c[0]-c[i]>0.05)
		{
			printf("worse");
		}
		else
		{
			printf("same");
		}
		if(i!=n-1)
		{
			printf("\n");
		}
	}
	return 0;
}
int main(){
	int n,i,a[100],b[100];
	double c[100];
	scanf("%d",&n);
	for(i=0;i<n;i++){
		scanf("%d %d",&a[i],&b[i]);
		c[i]=1.0*b[i]/a[i];
		if(i>0){
		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");
		}
	}
	}return 0;
}
//============================================================================
// Name        : 9.cpp
// Author      : 
// Version     :
// Copyright   : Your copyright notice
// Description : Hello World in C++, Ansi-style
//============================================================================


int main() {
	int n;
	cin>>n;
	double a,b;
	double x[100];
	for(int i=0;i<n;i++)//??
	{
		cin>>a>>b;
		x[i]=b/a;
	}
	for(int i=1;i<n;i++)//??
	{
		if(x[i]-x[0]>0.05)
			cout<<"better"<<endl;
		else if(x[0]-x[i]>0.05)
			cout<<"worse"<<endl;
		else
			cout<<"same"<<endl;
	}
	return 0;
}
int main()
{
	int	n;
	cin >> n;
	double	a[n + 1], c[n + 1];
	int	i;
	double	b[n + 1];
	memset(a, 0, sizeof(a));
	memset(c, 0, sizeof(c));
	memset(b, 0, sizeof(b));
	for (i = 1; i <= n; i ++)
	{
		cin >> a[i];
		cin >> c[i];
		b[i] = (double)(c[i] / a[i]); 
	}
	for (i = 2; i <= n; i ++)
	{
		if (b[i] - b[1] < (-0.05))
		{
			cout << "worse" << endl;
		}
			else if (b[i] - b[1] > (0.05))
			{
				cout << "better" << endl;
			}
				else
				{
					cout << "same" << endl;
				}
	}	
return 0;
}
int main()
{
	int n,i,a,b,c;
    float x,y;
	scanf("%d",&n);
	scanf("%d %d",&a,&b);
	x=b/(float)a;
    for(i=0;i<n-1;i++)
	{
		scanf("%d %d",&a,&b);
        y=b/(float)a;
		if(y-x>0.05)
			  c=0;
		else if(x-y>0.05)
			  c=1;
        else c=2;
	
	if(c==0) printf("better\n");
    if(c==1) printf("worse\n");
	if(c==2) printf("same\n");
	}
		return 0;
}
int main()
{
	int n,xg[999],i;
	float a,b,c,z[999],y[999];

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

	a=y[0]/z[0];

	for(i=1;i<n;i++)
	{
		b=y[i]/z[i];
		c=b-a;

		if(c>0.05)
			xg[i]=1;
		if(c<=0.05&&c>=-0.05)
			xg[i]=0;
		if(c<-0.05)
			xg[i]=-1;
	}

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

	return 0;
}
int main(){
  int n;
  double x,y,t;
  int zong[200],you[200],j[200];
  int i=0;
  scanf("%d",&n);
  for(i=0;i<n;i++){
	  scanf("%d %d",&zong[i],&you[i]);
      x=you[0]*1.0/zong[0];
	  y=you[i]*1.0/zong[i];
	  t=y-x;
	  if (t>0.05){
		  j[i]=2;
	  }
	  if (t<-0.05){
		 j[i]=0;
	 }
	 if (t<=0.05&&t>=-0.05){
		 j[i]=1;
	  }

  }
  i=1;
  for(i=1;i<n;i++){
	  if(j[i]==2){
		  printf("better\n");
	  }
      if(j[i]==0){
		  printf("worse\n");
	  }
      if(j[i]==1){
		  printf("same\n");
	  }
  }


  return 0;
}
main()
{
      int n ;
      double x,y;
      scanf("%d",&n);
      for(int i=0;i<n;i++)
      {
         int a,b;
         scanf("%d %d",&a,&b);
         if(i==0)
         { 
            x=(double)b/a;
            continue;
         }
         else 
         {
              y=(double)b/a;
         }
         if(y-x>0.05)
         printf("better\n");
         else if(x-y>0.05)
         printf("worse\n");
         else
          printf("same\n");
      }
    getchar();
    getchar(); 
    getchar();
    getchar(); 
}
int main(){
	double a[1000],b[1000],c,d;
	int n,i;
	scanf("%d",&n);
	for(i=0;i<n;i++)
	{
		scanf("%lf %lf",&a[i],&b[i]);
	}
	for(i=1;i<n;i++)
	{
		c=b[0]/a[0];
		d=b[i]/a[i];
		if((d-c)>0.05)
		printf("better\n");
		else if((c-d)>0.05)
			printf("worse\n");
		else
			printf("same\n");
	}
	return 0;
}
//**********************************//
 //*     ?????					*//
 //*     ???1000012711			*//
 //*     ????????			*//
 //*     ???2010.10.28			*//
 //**********************************// 
int main()
{
	int n, i;								//n?n? i????
	double a, b, per, per0;					//a,b?????????? per???????????? per0???????
	cin >> n;
	for (i = 1; i <= n; i ++)
	{
		cin >> a >> b;
		if (i == 1)							//?i?1? ???????? ???????????
		{
			per = b / a;
		}
		else								//?????????????
		{
			per0 = b / a;
		}
		if (i >= 2)							//i?1?  ????????
		{
			if (per - per0 > 0.05)			//????????????0.05? ???worse
			{
				cout << "worse" << endl;
			}
			else 
			{
				if (per - per0 < -0.05)		//??
				{
					cout << "better" << endl;
				}
				else
				{
					cout << "same" << endl;
				}
			}
		}
	}
	return 0;
}
int main(){
	int n;
	double a[100];
	double c,b;
	scanf("%d",&n);
	int i;
	for(i=0;i<n;i++){
		scanf("%lf%lf",&c,&b);
		a[i]=b/c;
	}
	for(i=1;i<n-1;i++){
		if(a[i]-a[0]>0.05){
			printf("better\n");
		}
		else if(a[0]-a[i]>0.05){
			printf("worse\n");
		}
		else{
			printf("same\n");
		}
	}
	if(a[n-1]-a[0]>0.05){
		printf("better");
	}
	else if(a[0]-a[n-1]>0.05){
		printf("worse");
	}
	else{
		printf("same");
	}
	return 0;
}
void main()
{
	int n;
	scanf("%d",&n);
	int a[100],b[100],i;
	double c[100];
	for(i=0;i<n;i++)
	{
		scanf("%d%d",&a[i],&b[i]);
		c[i]=(double)b[i]/a[i];
	}
	for(i=1;i<n;i++)
	{
		if(c[i]-c[0]>0.05){ printf("better\n");continue;}
		if(c[0]-c[i]>0.05){ printf("worse\n");continue;}
		else {printf("same\n");continue;}

	}
}
/*
 * 245.cpp
 *
 *  Created on: 2011-12-22
 *      Author: think
 */
int main(){//???
	int n;
	cin>>n;
	float standard;
	float temp1,temp2;
	cin>>temp1>>temp2;
	standard=temp2/temp1;
	int i;
	float rate[n];
	memset(rate,0,sizeof(rate));
	for(i=1;i<n;i++){
		cin>>temp1>>temp2;
		rate[i]=temp2/temp1;//???????
	}
	for(i=1;i<n;i++){//?????
		if(rate[i]-standard>0.05)cout<<"better"<<endl;
		else if(rate[i]-standard<-0.05)cout<<"worse"<<endl;
		else cout<<"same"<<endl;
	}
	return 0;
}//?????
//*****************************************************************************
//??????????? 
//?????? 
//???9-27 
//*****************************************************************************

int main()
{
	int n;                 //???????n 
	int all[100];                   //????????????????????? 
	double suv[100];
	double rate[100];
	
	cin >> n;
	
	for(int i = 0; i < n ; i ++)          //??????????? 
	{
	cin >> all[i] >> suv[i];
	rate[i] = suv[i] / all[i];
	}
	
	for(int j = 1; j < n; j ++)
	{
		if(rate[j] - rate[0] > 0.05) 
		cout << "better" << endl;
		
		else if(rate[0] - rate[j] > 0.05)
		cout << "worse" << endl;
		
		else
		cout << "same" << endl;
	}
	return 0;
}
int main(int argc, char* argv[])
{
	int n,a[100],b[100],i;
	double c[100];
	scanf("%d",&n);
	for(i=0;i<n;i++){
		scanf("%d%d",&a[i],&b[i]);
        c[i]=1.0*b[i]/a[i];
	}
	for(i=1;i<n;i++){
		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");
		}
	}
	return 0;
}
int main()
{
    double n,total,effect,t,e,i;
	double precent,p;
	cin>>n;
	cin>>t;
	cin>>e;
	p=e/t;
    for(i=0;i<n-1;i++)
	{
		cin>>total;
		cin>>effect;
		precent=effect/total;
		if ((precent-p)>0.05)
			cout<<"better"<<endl;
		else
		{
			if ((p-precent)>0.05)
				cout<<"worse"<<endl;
			else
				cout<<"same"<<endl;
		}
	}
	return 0;
}
int main()
{
	int n,i,a[100],b[100];
	double c[100];
	scanf("%d",&n);
	for(i=0;i<n;i++){
		scanf("%d%d",&a[i],&b[i]);}
	c[0]=(double)b[0]/a[0];
	for(i=1;i<n;i++){
		c[i]=(double)b[i]/a[i];
		if((double)(c[i]-c[0])>0.05)
			printf("better\n");
		if((double)(c[i]-c[0])<-0.05)
			printf("worse\n");
		if((double)(c[i]-c[0]<=0.05)&&(double)(c[i]-c[0])>=-0.05)
			printf("same\n");
	}
	return 0;
}
int main()
{
	double x;
	int n,i;
    double a[100],b[100];
	double c[100];
	scanf("%d",&n);
	scanf("%lf%lf",&a[0],&b[0]);
	x=b[0]/a[0];
	for(i=1;i<n;i++)
	{
		scanf("%lf%lf",&a[i],&b[i]);
		c[i]=b[i]/a[i];
	}
	for(i=1;i<n;i++)
	{
		if(c[i]-x>0.05)
			printf("better\n");
		else
		{
			if(x-c[i]>0.05)
				printf("worse\n");
			else
				printf("same\n");
		}
	}
		return 0;
}
int main(){
int n,i;
double x,y[100];
int sz1[100],sz2[100];
scanf("%d",&n);
for(i=0;i<n;i++){
	if(i==0){
	scanf("%d %d",&sz1[0],&sz2[0]);
	x=1.0*sz2[0]/sz1[0];
	}else{
	scanf("%d %d",&sz1[i],&sz2[i]);
	y[i]=1.0*sz2[i]/sz1[i];
	}
}
for(i=1;i<n;i++){
	if(y[i]-x>0.05){
		printf("better\n");
	}else if(x-y[i]>0.05){
	printf("worse\n");
	}else{
	printf("same\n");
	}
	}


	return 0;

}
int main()
{
	int n;
	double z[1000],y[1000],a,p;
	scanf("%d",&n);
    for(int i=1;i<=n;i++)
	{
		scanf("%lf %lf",&z[i],&y[i]);
	}
    a=y[1]/z[1];
	for(int b=2;b<=n;b++)
	{
		p=y[b]/z[b];
		if(p-a>0.05)
		{
		    printf("better\n");
		}
        else if(a-p>0.05)
		{
			printf("worse\n");
		}
		else
		{
		    printf("same\n");
		}
	}
	return 0;
}
int main()
{
	int n,i;
	scanf("%d",&n);
	int as[100][2]={0};
	for(i=0;i<n;i++)
	{
		scanf("%d%d",&as[i][0],&as[i][1]);
	}
	double x,y;
	x=(double)as[0][1]/(double)as[0][0];
	for(i=1;i<n;i++)
	{
		y=(double)as[i][1]/(double)as[i][0];
		if(y-x>0.05)
		{
			printf("better\n");
		}
		else if(x-y>0.05)
		{
			printf("worse\n");
		}
		else
		{
			printf("same\n");
		}
	}
}
int main()
{
	int n,i,num1,num2;
	int compare1,compare2;
	double x,y;
	scanf("%d",&n);
	scanf("%d%d",&num1,&num2);
	x=(double)num2/num1;
	for(i=1;i<n;i++){
		scanf("%d%d",&compare1,&compare2);
		y=(double)compare2/compare1;
		if(x>y&&x-y>0.05)
			printf("worse\n");
		else if(x<y&&y-x>0.05)
			printf("better\n");
		else
			printf("same\n");
	}
	return 0;
}
int main(){
	int n,zy,yy,zq,yq,i;
	float x,y;
	scanf("%d",&n);
	scanf("%d%d",&zy,&yy);
	x=1.0*yy/zy;
	for(i=0;i<n-2;i++){
		scanf("%d%d",&zq,&yq);
		y=1.0*yq/zq;
		if(y-x>0.05){
			printf("better\n");
		}
		else if(y-x<-0.05){
			printf("worse\n");
		}
		else{
			printf("same\n");
		}
	}
	scanf("%d%d",&zq,&yq);
	y=1.0*yq/zq;
	if(y-x>0.05){
		printf("better");
	}
	else if(y-x<-0.05){
		printf("worse");
	}
	else if(y-x>=-0.05 && y-x<=0.05){
		printf("same");}

	return 0;
}
int main(){
	int n,s[1000][2];
	double y[1000];
	scanf("%d",&n);
	for(int i=0;i<n;i++){
		scanf("%d%d",&s[i][0],&s[i][1]);
        y[i]=s[i][1]*1.0/s[i][0];
		
	}
	for(int j=1;j<n;j++){
		if((y[j]-y[0])>0.05){
			printf("better");
		}else if((y[0]-y[j])>0.05){
			printf("worse");
		}else{printf("same");}
		printf("\n");
	}
return 0;
}
int main()
{
	int n,i=0; 
	float x,y,z,t,s;//z?????? t??????s?x?y??
	cin>>n;
	cin>>z>>t;
	x=t/z;
	for(i=1;i<n;i++)
	{
		cin>>z>>t;
		y=t/z;
		s=x-y;
		if(fabs(s)<=0.05) cout<<"same"<<endl;
		else {
			if(s>0.05) cout<<"worse"<<endl;
		    else cout<<"better"<<endl;
	         }
	}
	return 0;
}
int main(){
	int n,i,j;
	int sz[200][2];
	int jg[100];
	scanf("%d",&n);
	for(i=0;i<n;i++){
		for(j=0;j<2;j++){
			scanf("%d",&sz[i][j]);
		}
		jg[i]=sz[i][1]*100/sz[i][0];
	}
	for(i=1;i<n;i++){
		if(jg[i]-jg[0]>=5) printf("better\n");
        else{
			if(jg[0]-jg[i]>=5) printf("worse\n");
			else printf("same\n");
		}
	}
	return 0;
}
int main()
{
	int n,sz[100][2],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("better\n");
		}
		if(a-(float)sz[i][1]/sz[i][0]>0.05)
		{
			printf("worse\n");
		}
		if(a-(float)sz[i][1]/sz[i][0]<=0.05&&(float)sz[i][1]/sz[i][0]-a<=0.05)
		{
			printf("same\n");
		}
	}
	return 0;
}
int main()
{
int n,i;
double a,b,q[1000],w[1000];
scanf("%d",&n);
scanf("%lf%lf",&a,&b);
a=b/a;
for(i=0;i<n-1;i++)
{scanf("%lf%lf",&q[i],&w[i]);
q[i]=w[i]/q[i];}
for(i=0;i<n-1;i++)
{if(q[i]-a>0.05){printf("better\n");}
else if(a-q[i]>0.05){printf("worse\n");}
else printf("same\n");}
return 0;
}
int main()
{	int i,n,a[100],b[100];
	float c[100];
	scanf("%d",&n);
	scanf("%d%d",&a[0],&b[0]);
	c[0]=(float)b[0]/(float)a[0];
	for(i=1;i<n;i++){
		scanf("%d%d",&a[i],&b[i]);
		c[i]=(float)b[i]/(float)a[i];
	}
	for(i=1;i<n;i++){
		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");
	}
	return 0;
}
int main(int argc, char* argv[])
{
	double a[100],b[100];
	int i,j,k,n;
	double c[100];
	scanf("%d",&n);
	for(i=0;i<n;i++){
		scanf("%lf%lf",&a[i],&b[i]);
	}
	for(i=0;i<n;i++){
		c[i]=(b[i]/a[i])*100;
	}
	for(i=1;i<n;i++){
		if(c[i]-c[0]>5){
			printf("better\n");
		}
		if(c[0]-c[i]>5){
			printf("worse\n");
		}
		if(c[i]-c[0]<=5&&c[0]-c[i]<=5){
			printf("same\n");
		}
	}
	return 0;
}
int main()
{
	int k,i;
	float x,y,x1,y1;
	scanf("%d",&k);
	scanf("%d%d",&x1,&y1);
	for(i=0;i<k-1;i++)
	{
		scanf("%d%d",&x,&y);
		if(y/x-y1/x1>0.05)
		printf("better\n");
		if(y/x-y1/x1<-0.05)
		printf("worse\n");
		if((y/x-y1/x1<=0.05)&&(y/x-y1/x1>=-0.05))
		printf("same\n");
	}
    return 0;
}
int main(){
 int n,i,j;
 double k,m,t;
 double a[100][2];
 scanf("%d",&n);
 for(i=0;i<n;i++){
	 for(j=0;j<2;j++){
		 scanf("%lf",&a[i][j]);
	 }
 }
 k=a[0][1]/a[0][0];

 for(i=1;i<n;i++){
	 if(  (k-a[i][1]/a[i][0])>0.05  )   {printf("worse\n");}
      else   if(  (a[i][1]/a[i][0]-k)>0.05  )   {printf("better\n");}
      else {printf("same\n");}
 }
 return 0;
}
int main()
{
	int i,k;
	double all[100]={0},good[100]={0};//??????????????????
	double rate[100]={0};//????????
	cin>>k;
	cin>>all[0]>>good[0];//???????????
	rate[0]=good[0]/all[0];//????
	//cout<<rate[0];
	for(i=1;i<k;i++)
	{
		cin>>all[i]>>good[i];//??????
		rate[i]=good[i]/all[i];//??????
		//cout<<rate[i];
		if((rate[i]-rate[0])>0.05)cout<<"better"<<endl;//?????
		else if((rate[0]-rate[i])>0.05)cout<<"worse"<<endl;
		else cout<<"same"<<endl;
	}
	return 0;
}
int main(){
	int n;
	
	scanf("%d",&n);
	int *a=(int*)malloc(sizeof(int)*n);
	int *b=(int*)malloc(sizeof(int)*n);
	double x,y;
	for(int i=0;i<n;i++){
		scanf("%d %d",&a[i],&b[i]);
		if(i==0){
			x=(double)b[i]/a[i];
		}else{
			y=(double)b[i]/a[i];
		}
		if(i!=0){
			if(i!=1){
				printf("\n");
			}
			if((y-x)>0.05){
				printf("better");
			}else if((x-y)>0.05){
			
				printf("worse");
			}else{
				printf("same");
			}

		}

	
		
	
	
	
	}


	//scanf("%d",&n);





	return 0;
}
int main()
{
	int n,i;
	float xg[1000],a,b,x;
	scanf("%d",&n);
	scanf("%f%f",&a,&b);
	x=(b/a)*100;
         for(i=0;i<n-1;i++)
	{
                  float p,q,y;
		scanf("%f%f",&p,&q);
		y=(q/p)*100;
		xg[i]=y;
	}
	for(i=0;i<n-1;i++)
	{
		if((x-xg[i])>5)
		{
			printf("worse\n");
		}
		else if((xg[i]-x)>5)
		{
			printf("better\n");
		}
		else{
                           printf("same\n");
		}
	}
	return 0;
}
int main(){
	int n,m,i,j,bingli[50][2];
	double ylx;

	scanf("%d",&n);

	for(i=0;i<n;i++){
		for(m=0;m<2;m++){
			scanf("%d",&bingli[i][m]);
		}
		
	}

	ylx=(double)bingli[0][1]/(double)bingli[0][0];

	for(j=1;j<n-1;j++){
		if((double)bingli[j][1]/(double)bingli[j][0]-ylx>0.05){
			printf("better\n");
		}
		else if(ylx-(double)bingli[j][1]/(double)bingli[j][0]>0.05){
			printf("worse\n");
		}
		else{
			printf("same\n");
		}
	}
	 
	if(j==n-1){
		if((double)bingli[j][1]/(double)bingli[j][0]-ylx>0.05){
			printf("better");
		}
		else if(ylx-(double)bingli[j][1]/(double)bingli[j][0]>0.05){
			printf("worse");
		}
		else{
			printf("same");
		}
	}
	return 0;
}
int main()
{
	int n;
	cin>>n;
	cout<<endl; 
	float x1,y1,x,y;
	cin>>x1>>y1;
	cout<<endl;
	float t;
	t=y1/x1;
	for(int i=1;i<=n-1;i++)
	{
		cin>>x>>y;
		if(y/x>t+0.05)
			cout<<"better"<<endl;
		else if(y/x<t-0.05)
			cout<<"worse"<<endl;
		else
			cout<<"same"<<endl;
}
                   return 0;
}
int main()
{
	int n; cin>>n;
	int i;
	double a[n][2];
	cin>>a[0][0]>>a[0][1];
	double x,y;
	x=a[0][1]/a[0][0];
	for (i=1;i<n;i++)
	{
		cin>>a[i][0]>>a[i][1];
		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 n,a,b,sz[100],s[100];
	double c,z[100];
	scanf("%d %d %d",&n,&a,&b);
	c=1.0*b/a;
	for(int i=0;i<n-1;i++){
		scanf("%d %d",&sz[i],&s[i]);
		z[i]=1.0*s[i]/sz[i];
		if(z[i]>c){
			if(z[i]-c>0.05){
				printf("better\n");
			}else{
				printf("same\n");
			}
		}else{
			if(c-z[i]>0.05){
				printf("worse\n");
			}else{
				printf("same\n");
			}
		}
	}
	return 0;
}
double Rate(int tot,int eff)//???????Rate?????????effective?????total?????????????????????double Rate
{
    double rate;
    rate=(double)eff/(double)tot;//????eff?tot?int??????????????????????eff?tot???int????????????????????
    return(rate);
}
int main()
{
    int n,i,tot,eff;
    double rate,rate0;
    cin>>n;
    cin>>tot>>eff;
    rate0=Rate(tot,eff);
    for(i=1;i<n;i++)
    {
        cin>>tot>>eff;
        rate=Rate(tot,eff);
        if(rate>rate0+0.05)cout<<"better"<<endl;
        else if(rate<rate0-0.05)cout<<"worse"<<endl;
        else cout<<"same"<<endl;
    }
    return 0;
}
main()
{
 int n,i;
 float a,b,c;
 float x,y,z;
 scanf("%d",&n);
 scanf("%f%f",&x,&y);
 z=y/x;
 for(i=0;i<n-1;i++)
 {
  scanf("%f%f",&a,&b);
  c=b/a;
  if(20*(c-z)>1)
  printf("better\n");
  else
  {if(20*(z-c)>1)
  printf("worse\n");
  else
  printf("same\n");}
 }
 }
int main(){
   	int n,i,a[1000],b[1000];
	double m,p ;
         scanf("%d", &n);
	for (i = 0; i < n; i++) {
        scanf("%d %d",&a[i],&b[i]);
	}
		m=(double)b[0]/(double)a[0];
	for (i = 1; i < n; i++) {
		p=(double)b[i]/(double)a[i];
		if(m-p>0.05){
		printf("worse\n");
		}
		else if(p-m>0.05){
		printf("better\n");
		}
		else if (m-p<=0.05||p-m<=0.05) {
			printf("same\n");
		}
	}
	return 0;
}
/*
 * ????AIDS.cpp
 * ?????
 * ????: 2011-12-30
 * ????????
 */
int main(){
	int n,i;
	int a[1000],b[1000];
	float c[1000];
	cin>>n;
	for(i=0;i<n;i++)
	{
		cin>>a[i]>>b[i];
		c[i]=((float)b[i]/a[i]);
		if(i!=0)
		{
			if(c[i]-c[0]>0.05){cout<<"better"<<endl;continue;}
		    if(c[i]-c[0]<-0.05)cout<<"worse"<<endl;
		    else cout<<"same"<<endl;
		}
	}
	return 0;//????
}
int main(){
int n;
scanf("%d",&n);
int i,j,l,m,a[99],z[99];
float q,w;
n=n-1;
scanf("%d%d",&l,&m);
q=1.0*m/l;
for(i=0;i<n;i++){
scanf("%d%d",&l,&m);
w=1.0*m/l;
if(w>=q+0.05){
printf("better\n");}
else if(w<=q-0.05){
printf("worse\n");}
else{
printf("same\n");}

}
return 0;}
int main()
{
   int n,i,a[200][2];
   double c;
   scanf("%d",&n);
   for(i=0;i<n;i++)
   scanf("%d%d",&a[i][0],&a[i][1]);
    c=(double)a[0][1]/a[0][0];
   for(i=1;i<n;i++)
   if((double)a[i][1]/a[i][0]-c>0.05)
    printf("better\n");
   else if((double)a[i][1]/a[i][0]-c<-0.05)
   printf("worse\n");
    else printf("same\n");
   return 0;
}
int main()
{
	int n,i,k;
	scanf("%d",&n);
	double *yx=(double*)malloc(sizeof(double)*n);
	for(i=0;i<n;i++){
	int sz[2];
	for(k=0;k<2;k++){
	scanf("%d",&sz[k]);
	}
	yx[i]=(double)sz[1]/sz[0];
	}
	for(i=1;i<n;i++){
		if(yx[i]-yx[0]>0.05){
	printf("better\n");}
		else if(yx[0]-yx[i]>0.05){printf("worse\n");}
		else {printf("same\n");}}
	free(yx);
	return 0;
	
}
int main()
{
   int n,i;
   double a[10000],b[10000],c[10000];
    scanf("%d\n",&n);
    for(i=0;i<n;i++)
	{
     scanf("%lf %lf",&a[i],&b[i]);
     c[i]=b[i]/a[i];
    }
    for(i=1;i<n;i++)
	{
     if((c[i]-c[0]<=0.05)&&(c[i]-c[0]>=-0.05)) 
	 {
        printf("same\n");
     }
     if(c[i]-c[0]>0.05)
	 {
        printf("better\n");
     }
     if(c[i]-c[0]<-0.05)
	 {
        printf("worse\n");
     }
    }
 return 0;
}
int main()
{
	int n;
	scanf("%d",&n);
	int all[100],eff[100];
	double r[100];

	int k=0;
	while(k<n){
		scanf("%d %d",&all[k],&eff[k]);
		k++;
	}
	r[0]=(1.0*(eff[0])*100)/(1.0*(all[0]));

	int i=1;
	while(i<n){
		r[i]=(1.0*eff[i]*100)/(1.0*all[i]);
		if(r[i]-r[0]>5){
			if(i==1){
				printf("better");
			}else{
				printf("\nbetter");
			}
			
		}else{
			if(r[0]-r[i]>5){
				if(i==1){
					printf("worse");
				}else{
					printf("\nworse");
			}
				
			}else{
				if(i==1){
					printf("same");
				}else{
					printf("\nsame");
			}
				
			}
		}
		i++;
	}
	return 0;

	

}
int main()
{
	int n, i;
	int a[1000], b[1000];

	scanf("%d", &n);
	for(i = 0; i < n; i++)
	{
		scanf("%d%d", &a[i], &b[i]);
	}
	for(i = 1; i < n; i++)
	{
		if((b[i]*1.0)/a[i] - (b[0]*1.0)/a[0] > 0.05)
			printf("better\n");
		else if((b[0]*1.0)/a[0] - (b[i]*1.0)/a[i] > 0.05)
			printf("worse\n");
		else 
			printf("same\n");
	}



	return 0;
}
int main ()
{
int n,i;
float a[1000],b[1000],c[1000];
scanf ("%d",&n);
for (i=0;i<n;i++)
{
    scanf ("%f %f",&a[i],&b[i]);
}
c[0]=b[0]/a[0];
for (i=1;i<n;i++)
{
    c[i]=b[i]/a[i];
    if (c[0]-c[i]>0.05)
    printf ("worse\n");
    if (c[i]-c[0]>0.05)
    printf ("better\n");
    if (fabs (c[i]-c[0])<0.05)
    printf ("same\n");
}
getchar ();
getchar ();
}
/*
 * ?????.cpp
 *
 *  Created on: 2011-12-23
 *      Author: ???
 */

void check(int sample,int cure,int sample1,int cure1){
	if(cure*1.00/sample-cure1*1.00/sample1>0.05){
		cout<<"worse"<<endl;
	}
	else if(cure1*1.00/sample1-cure*1.00/sample>0.05){
		cout<<"better"<<endl;
	}
	else cout<<"same"<<endl;
}
int main(){
    int n,sample,cure,sample1,cure1;
    cin>>n;
    cin>>sample>>cure;
    for(;n>1;n--){
    	cin>>sample1>>cure1;
    	check(sample,cure,sample1,cure1);
    }
	return 0;
}
int main(){
	int n,i=0;
	double x,y,a,b;
	scanf("%d",&n);
	int bls[100],lxs[100];
	for(i=0;i<n;i++){
		scanf("%d %d",&bls[i],&lxs[i]);
	}
	a=bls[0];
	b=lxs[0];
	x=(b/a)*100;
	for(i=1;i<n;i++){
		a=bls[i];
		b=lxs[i];
		y=(b/a)*100;
		if(y-x>5){
			printf("better\n");
		}else if(x-y>5){
			printf("worse\n");
		}else{
			printf("same\n");
		}
	}
	return 0;
}
int main (){
int n,i;
double t;
int a[100],b[100];
scanf("%d",&n);
scanf("%d%d",&a[0],&b[0]);
	t=1.0*b[0]/a[0];
	for (i=1;i<n;i++){
scanf("%d%d",&a[i],&b[i]);
		if(1.0*b[i]/a[i]-t>0.05){
			printf("better\n");
		}
		else if(t-1.0*b[i]/a[i]>0.05){
			printf("worse\n");
		}
		else{
			printf("same\n");
		}
	}

	return 0;
}
int main()
{
	double sum[10001],eff[10001],sum1,eff1;
	double per[10001],std;
	int n;
	int temp;
	int i,j;
		

	
	cin>>n;
	cin>>sum1>>eff1;
	std=eff1/sum1;
		for(i=1;i<=n-1;i++)
		{
			
			
					cin>>sum[i]>>eff[i];
					per[i]=eff[i]/sum[i];
					if(per[i]-std>0.05)
					{
						cout<<"better"<<endl;
					}
					else if(std-per[i]>0.05)
					{
						cout<<"worse"<<endl;
					}
					else
						cout<<"same"<<endl;

		}
			
	


	return 0;
}