semeru/Code-Code-CloneDetection-POJ104 huggingface dataset:
int main()
{
	int n,i;
	float a[10000]={0},lin;
	cin>>n;
	for(i=0;i<n;i++)
	{
		cin>>lin>>a[i];
		a[i]=a[i]/lin;
	}
	for(i=1;i<n;i++)
	{
		if((a[i]-a[0])>0.04999999)
			cout<<"better"<<endl;
		else if((a[0]-a[i])>0.04999999)
			cout<<"worse"<<endl;
		else
			cout<<"same"<<endl;
	}
	return 0;
}
int main()
{
	int n,i;
	double a,b,x,y;
	cin>>n;
	cin>>a>>b;
	x=b/a;
	for (i=1;i<=n-1;i++)
	{
		cin>>a>>b;
		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,a,b,p,q;
	double m,c[10000];
	scanf("%d",&n);
	scanf("%d%d",&p,&q);
	m=1.0*q/p;
	for(i=0;i<n-1;i++){
		scanf("%d%d",&a,&b);
		c[i]=1.0*b/a;
		
	}
	for(i=0;i<n-1;i++){
	    if((c[i]-m)>0.050){
			printf("better\n");
		}
		if((m-c[i])>0.050){
			printf("worse\n");
		}
		if(((c[i]-m)<=0.050)&&((c[i]-m)>=-0.050)){
			printf("same\n");
		}
		
	}
	return 0;
}
int main()
{
	int n,i;double a[100][2],b[100];
	cin>>n;
	for(i=0;i<n;i++)
	{cin>>a[i][0]>>a[i][1],b[i]=a[i][1]/a[i][0];}
	for(i=1;i<n;i++)
	    {if((b[i]-b[0])>0.05)
	        cout<<"better"<<endl;
		else if((b[i]-b[0])<-0.05)
	         cout<<"worse"<<endl;
		else cout<<"same"<<endl;}

}
int main()
{
   int n,i;
   double l,a[100],b[100],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]=1.0*b[i]/a[i];
   }
   for(i=0;i<n-1;i++)
   {
	   l=c[i+1]-c[0];
	   if(l>0.05)
	   {
		   printf("better\n");
		
	   }
	   else if(l<-0.05)
	   {
		   printf("worse\n");
	   }
	   else
	   {
		   printf("same\n");
	   }
   }
   return 0;
}
int main()
{
	double i , n , a , b , c , x , y , z ;
	cin >> n ;
	for ( i = 0 ; i < n ; i = i ++ )
	{
		if ( i == 0 )
		cin >> a  >>b ;
		c = b / a * 1.00 ;
		if ( i >= 1 )
		{
			cin >> x >> y ;
			z = y / x ;
			if ( z - c > 0.05 )
			cout << "better" <<endl;
		    else
			  if ( c - z > 0.05 )
				cout << "worse" <<endl;
			  else
				cout << "same" <<endl;
		}
	}
	return 0;
}
int main()
{
  int i,j,n,s[100][2];
  scanf("%d",&n);
  i=0,j=0;
  double a,b;
  a=0,b=0;
  for(i=0;i<n;i++)
  {
	  for(j=0;j<2;j++)
	  {
		  scanf("%d",&s[i][j]);
	  }
  }
  a=1.0*s[0][1]/s[0][0];
  for(i=1;i<n;i++)
  {
	  b=1.0*s[i][1]/s[i][0];
	  if((b-a)>0.05)
	  {
		  printf("better\n");
	  }
	  else if((a-b)>0.05)
	  {
		  printf("worse\n");
	  }
	  else
	  {
		  printf("same\n");
	  }
  }
  return 0;
}
int main()
{
	int i,n;
	double a[100][3];
	cin>>n;
	for(i=0;i<n;i++)
	{
		cin>>a[i][0]>>a[i][1];
		a[i][2]=a[i][1]/a[i][0];
		if(i!=0)
		{
			if(a[i][2]-a[0][2]>0.05)
			{
				cout<<"better"<<endl;
			}
			else
			{
				if(a[0][2]-a[i][2]>0.05)
				{
					cout<<"worse"<<endl;
				}
				else
				{
					cout<<"same"<<endl;
				}
			}
		}
	}
	return 0;
}
int main() 
{ 
	int n,i;
	scanf("%d",&n);
	double s[100][2],z[100];
	for(i=0;i<n;i++)
	{
		scanf("%lf",&s[i][0]);
		scanf("%lf",&s[i][1]);
		z[i]=s[i][1]/s[i][0];
	}
	for(i=1;i<n;i++)
	{
        if(z[i]-z[0]>0.05)
			printf("better\n");
		else if(z[0]-z[i]>0.05)
			printf("worse\n");
		else
			printf("same\n");
	}
	return 0;
}
int main()
{
	int n,i,a,b,d,e;
	float x,y,c;
	scanf("%d",&n);
	scanf("%d",&a);
	scanf("%d",&b);
	x=(float)b/a;
	for(i=1;i<n;i++)
	{
		scanf("%d%d",&d,&e);
		y=(float)e/d;
		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,x,y,i,b;
	double a[100];

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


	
	
	}










	return 0;
}
int main()
{
    int a[100],b[100],n,i,j,k;
    double c[100];
    scanf("%d",&n);
    scanf("%d%d",&a[0],&b[0]);
    c[0]=(double)b[0]/a[0];
    for(i=1;i<n;i++){
        scanf("%d%d",&a[i],&b[i]);
        c[i]=(double)b[i]/a[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;
}
//********************************
//*????9.cpp                ** 
//*?????(4-9) ?????   **
//*?????? 1200012834      **
//*???2012.9.25              **
//********************************

int main()                            // ??? 
{                                     // ?????
    int n,i;                          // ?????n?????i 
    cin >> n;                         // ??n?? 
    float a[n],b[n],c[n];             // ????????????????????????????? 
    for(i=1;i<=n;i++)                 // ??????????????
        {
        cin >> a[i] >> b[i];          // ??????????????????a[1]?b[1]?????????????? 
        c[i]=b[i]/a[i];               // ????????????????c[i] 
        }
    for(i=2;i<=n;i++)                 // ???????????????????i=2???? 
        {
        if(c[i]-c[1]>0.05)            // ??????????????????5%?? 
            cout << "better" << endl; // ??better 
        else if(c[1]-c[i]>0.05)       // ????????????????5%??
            cout << "worse" << endl;  // ??worse 
        else                          // ????????????????????? 
            cout << "same" << endl;   // ??same 
        }
    return 0;
}                                     // ?????
//*************************
//**7.cpp??????****
//**??????1300012993*
//**???2013.10.1**
//*************************
int main()
{
    int n;
    double x, y, a, b, num, num1, eff, eff1;
    cin >> n;             //????
    cin >> num1 >> eff1;  //???????????????
    x = eff1 / num1;      //??????????
    while(cin >> num >> eff) //??
      { y = eff / num;    //?????????
        a = x - y;
        b = y - x;        //?????
        if(a > 0.05)
            cout << "worse" << endl; //??????????????0.05????worse
          else
            if(b > 0.05)  //??????????????0.05????better
              cout << "better" << endl;
            else
              cout << "same" << endl;} //????same
    return 0;
}
int main()                                //?????
{                                         
	int n;                                //????
	cin>>n;                               //????
	int a,b;                              //????
	cin>>a>>b;                            //????
	double x=(0.01*b)/(0.01*a);           //???????
	for(int i=0 ; i<(n-1); i++)           //????
	{ 
		int c,d;                          //????
		cin>>c>>d;                        //????
		double y=(0.01*d)/(0.01*c);       //???????
		if(x-y>0.05)                      //????
			cout<<"worse"<<'\n';                //????
		else if(y-x>0.05)                 //????
			cout<<"better"<<'\n';               //????
		else                              
			cout<<"same"<<'\n';                 //????
	}


	return 0;                             //???????????????????
	


}
int main()
{
    int n=0,a0=0,b0=0;              //?????????? 
    double c0;                      //??? 
    cin>>n;
    cin>>a0>>b0;
    c0=(double)b0/a0;
    for(int i=1;i<n;i++)            //n-1??????? 
    {
                    int a=0,b=0;    //???????                  
                    double c=0;     //??? 
                    cin>>a>>b;
                    c=(double)b/a;
                    if (c>c0)         //?????????? 
                    {
                            if ((c-c0)*100<=5) cout<<"same"<<endl;  
                            else cout<<"better"<<endl;
                    }
                    if (c<c0)
                    {
                             if ((c0-c)*100<=5) cout<<"same"<<endl;
                             else cout<<"worse"<<endl;
                    }
    }

    return 0;
                                
}
int main()
{int n,i=0;
cin>>n;
float a[100],b[100];
for(i=0;i<=n-1;i++)
{cin>>a[i]>>b[i];}
float c;
c=b[0]/a[0];
for(i=1;i<=n-1;i++)
{if(b[i]/a[i]-c>0.05)
  cout<<"better"<<endl;
else if(c-b[i]/a[i]>0.05)
  cout<<"worse"<<endl;
else cout<<"same"<<endl;}
return 0;}
int main()
{
    int n,i,a[100],b[100],q;
    double x,y;
    cin>>n;
    cin>>a[1]>>b[1];
    x=b[1]/(1.0*a[1]);
    for(i=2;i<=n;i++)
    {
                     cin>>a[i]>>b[i];
                     y=b[i]/(1.0*a[i]);
                     if(x-y>0.05)cout<<"worse"<<endl;
                     else if(y-x>0.05)cout<<"better"<<endl;
                     else cout<<"same"<<endl;
    }
    cin>>q;
    return 0;
}
int main()
{
	int n,i,a,b,m,j;
	double c,d,biao,e,f,g,t;
	scanf("%d",&n);
	scanf("%d%d",&a,&b);
	c=a*1.0000000;
	d=b*1.0000000;
	biao=d/c;
    for(i=1;i<n;i++)
	{
		scanf("%d%d",&m,&j);
	    e=m*1.0000000;
	    f=j*1.0000000;
	    g=f/e;
		t=g-biao;
		if(t>0.05) 
		{
			printf("better\n");
			continue;
		}
		if((biao-g)>0.05) 
		{
			printf("worse\n");
			continue;
		}
		printf("same\n");
	}
	return 0;
}
/*
 * ????review(2).cpp
 * ??????
 * ????: 2010-12-22
 * ??????????????n??????????????????????????????????
 *       ?n???????????????????????????????????????????
 *       ?????????better??????????worse?????same?
 */

double former;//??????????????
void judge(double a,double b){
	double improve;//???????????????
	improve=b/a;//?????????
	if(improve-former>0.05)cout<<"better"<<endl;//?????????better
	else if(former-improve>0.05)cout<<"worse"<<endl;//?????????worse
	else cout<<"same"<<endl;//?????????same
}
int main(void){
	int n;//?????????????
	double Fa,Fb,Ia,Ib;//?????????
	cin>>n>>Fa>>Fb;//????????
	former=Fb/Fa;//??????????????former
	while (n>1){
		cin>>Ia>>Ib;//????????????
		judge(Ia,Ib);//????????
		n--;//n???????
	}
	return 0;//????
}
int main()
{
	int n,i=0,x,y;
	double s[100];
	scanf("%d",&n);
	scanf("%d %d",&x,&y);
	s[0]=(double)y/x;
	for(i=1;i<n;i++)
	{
	scanf("%d %d",&x,&y);
	s[i]=(double)y/x;
	if(s[i]-s[0]>0.05)
		{printf("better\n");}
		else 
			if(s[0]-s[i]>0.05)
				{printf("worse\n");}
				else {printf("same\n");}
	}

   return 0;
}
int main()
{
int n;
scanf("%d",&n);
int i,a,b;
scanf("%d%d",&a,&b);
double c=(double)b/a; 
for (i=1; i<n; i++)
{
scanf("%d%d",&a,&b);
double d=(double)b/a; 
double t=d-c;
if (t>0.05) printf("better\n");
else if (t<-0.05) printf("worse\n");
else printf("same\n");
}
return 0;
}
int main()
{
	int a[100][2],n,i,j;
	double c[100];
	scanf("%d",&n);
	for(i=0;i<n;i++)
	{
		for(j=0;j<2;j++)
		{
			scanf("%d",&a[i][j]);
		}
	}
	for(i=1;i<n;i++)
	{
		c[i]=100*((1.0*a[0][1]/a[0][0])-(1.0*a[i][1]/a[i][0]));
		if(c[i]>5)
		{
			printf("worse");
			printf("\n");
		}
		else if(c[i]<(-5))
		{
			printf("better");
				printf("\n");
		}
		else{
			printf("same");
				printf("\n");
		}
	}
	return 0;
}
int main()
{
	int n,i;
	double a[100],b[100],y[100],p,q,rate;
	cin>>n>>p>>q;
	rate=q/p;
	for(i=0;i<n-1;i++)
	{
		cin>>a[i]>>b[i];
		y[i]=b[i]/a[i];
		if(y[i]-rate>0.05)
			cout<<"better"<<endl;
		else if(rate-y[i]>0.05)
			cout<<"worse"<<endl;
		else
			cout<<"same"<<endl;
	}
	return 0;
}
int main()
{
	int n,*z,*y,i;
	double v1,v2;
	scanf("%d",&n);
	z=(int*)malloc(sizeof(int)*n);
	y=(int*)malloc(sizeof(int)*n);
	for(i=0;i<n;i++){
		scanf("%d%d",&z[i],&y[i]);
	}
	v1=1.0*y[0]/z[0];
	for(i=1;i<n;i++){
		v2=1.0*y[i]/z[i];
		if(v2-v1>0.05){
			printf("better\n");
		}else if(v1-v2>0.05){
			printf("worse\n");
		}else{
			printf("same\n");
		}
	}
	return 0;
}
int main(){
	int n,i,a,b;
	scanf("%d",&n);
	double *c=(double*)malloc(sizeof(double)*n);
	for(i=0;i<n;i++){
		scanf("%d%d",&a,&b);
		c[i]=((double)b)/((double)a);
	}
	for(i=1;i<n;i++){
		if(c[i]-c[0]>0.05){
			printf("better\n");
		}
		if(c[i]-c[0]<-0.05){
			printf("worse\n");
		}
		if((c[i]-c[0]>-0.05)&&(c[i]-c[0]<0.05)){
			printf("same\n");
		}
	}
	return 0;
}
int main()
{
	int n,a[100],i,b[100];
	scanf("%d",&n);
	for(i=0;i<n;i++)
	{
		scanf("%d%d",&a[i],&b[i]);
	}
	for(i=1;i<n;i++)
	{
		if(1.0*b[i]/a[i]-1.0*b[0]/a[0]>0.05){
			printf("better\n");
		}else{
			if(1.0*b[0]/a[0]-1.0*b[i]/a[i]>0.05){
				printf("worse\n");
			}else{
				printf("same\n");
			}
		}
	}
	return 0;
}
int main()
{
  int a,b,c,i,n,j,m;
  double x,y;
  scanf("%d%d %d",&n,&a,&b);
  x=1.0*b/a;
  for(i=1;i<=n-1;i++)
  {
   scanf("%d %d",&c,&j);
   y=1.0*j/c;
   if(x-y>=0.05) printf("worse\n");
   else if(y-x>=0.05) printf("better\n");
   else printf("same\n");}
   return 0;
}
int main()
{
    int n;
    scanf("%d",&n);
    int sum[100],eff[100];
    scanf("%d%d",&sum[0],&eff[0]);
    double result;
    result=(double)eff[0]/sum[0];
    double a[100];
    for(int i=1;i<n;i++){
     scanf("%d%d",&sum[i],&eff[i]);
     a[i]=(double)eff[i]/sum[i];
     if(a[i]>result){
       if((a[i]-result)>0.05)
       printf("better\n");
       else if((a[i]-result)<=0.05)
       printf("same\n");
       }
     else if(a[i]<result){
      if((result-a[i])>0.05)
       printf("worse\n");
      else if((result-a[i])<=0.05)
       printf("same\n");
     }
     else if(a[i]==result)
       printf("same\n");
    }
return 0;
}
int main(){
	double bingli[N][2];
	int n,i;
	double x,y;
	scanf("%d",&n);
	scanf("%lf %lf",&bingli[0][0],&bingli[0][1]);
	x=bingli[0][1]/bingli[0][0];
	for(i=1;i<n;i++){
		scanf("%lf %lf",&bingli[i][0],&bingli[i][1]);
		y=bingli[i][1]/bingli[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; 
	double a[100], b[100];
	cin >> n;
	for (int i = 0; i < n; i ++)
		cin >> a[i] >> b[i];
	for(int j = 1; j < n; j ++)
	{
		if( (b[j] / a[j]) - (b[0] / a[0] ) > 0.05)
			cout << "better" << endl;
		else if((b[j] / a[j]) -( b[0] / a[0] ) < -0.05)
			cout << "worse" << endl;
			else
				cout<< "same" << endl;
	}
	return 0;
}
int main()
 {
   int n,m[1000],i;
   int x[1000];
   scanf("%d",&n);
   int ss[1000][2];
      for(i=0;i<n;i++)
      {
       scanf("%d%d",&ss[i][0],&ss[i][1]);
        }
      
       for(i=0;i<n;i++)
      {
       x[i]=(int)(100.0*ss[i][1]/ss[i][0]+0.5);
        }
       for(i=1;i<n;i++)
      {
       if(x[i]-x[0]>5)printf("better\n");
       else if(x[0]-x[i]>5)printf("worse\n");        
       else if(x[i]-x[0]<5&&x[0]-x[i]<5)printf("same\n");
}

         

     return 0;
  }
int main(){
	int data[100][3];
	int n,a,b;
	scanf("%d",&n);
	scanf("%d %d",&a,&b);
	double c;
	c=1.0*b/a;
	int i,j;
	for(i=0;i<n-1;i++){
		for (j=0;j<2;j++){
			scanf("%d",&(data[i][j]));
		}
	}
    float buff=0;
	for(i=0;i<n-1;i++){
		
		
		
		buff=(float)data[i][1]/data[i][0];
		if ((buff-c) > 0.05){
			printf("better\n");
		}
		else if ((c-buff) > 0.05){
			printf("worse\n");
		}
		else if ((c-buff)<0.05||(buff-c)<0.05){printf("same\n");}
		/*printf("%f,%f\n",c,buff);*/
		
	}
	return 0;
}
int main()
{
	int n,i;
	float a,b,c,d,x,y;
	scanf("%d %f %f",&n,&a,&b);
	x=b/a;
	for(i=1;i<n;i++)
	{
		scanf("%f %f",&c,&d);
		y=d/c;
		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,i,j;
		double a[100][2],perc[100];
	cin>>n;
	for(i=0;i<n;i++)
	{
		for(j=0;j<2;j++)
		cin>>a[i][j];
		perc[i]=a[i][1]/a[i][0];
	//	cout<<perc[i];
	}

	for(i=1;i<n;i++)
	{
		if((perc[i]-perc[0])>0.05)
			cout<<"better"<<endl;
		else if((perc[0]-perc[i])>0.05)
			cout<<"worse"<<endl;
		else 
			cout<<"same"<<endl;
	}
	return 0;
}
int main(){
	int a[100][2];
	double b[100];
	int n,i,j;
	scanf("%d",&n);
	for(j=0;j<n;j++){
		for(i=0;i<2;i++){
			scanf("%d",&a[j][i]);
		}
	}
b[0]=100.0*a[0][1]/a[0][0];
    for(j=1;j<n;j++){
	
		
			b[j]=100.0*a[j][1]/a[j][0];
			if(b[j]-b[0]>5){
				printf("better\n");
			}
			else if(b[j]-b[0]<-5){
				printf("worse\n");
			}
			else {
				printf("same\n");
			}
		
	}
	return 0;
}
int main()
{
	int n,i;
	double z,y,a,b;
	scanf("%d%lf%lf",&n,&z,&y);
	a=y/z;
	for(i=1;i<n;i++)
	{
		scanf("%lf%lf",&z,&y);
		b=y/z;
		if(b-a>0.05)
		{
			printf("better\n");
		}
		if(b-a<=0.05&&b-a>=-0.05)
		{
			printf("same\n");
		}
		if(b-a<-0.05)
		{
			printf("worse\n");
		}
	}
	return 0;
}
int main()
{
    int n,i;
    scanf("%d",&n);
    double shu[100][2];
    scanf("%lf %lf",&shu[0][0],&shu[0][1]);
    double lv=shu[0][1]/shu[0][0];
    for(i=1;i<n;i++){scanf("%lf %lf",&shu[i][0],&shu[i][1]);if(shu[i][1]/shu[i][0]-lv>0.05){printf("better\n");}else if(lv-shu[i][1]/shu[i][0]>0.05){printf("worse\n");}else{printf("same\n");}}
    return 0;
}
int main()
{
	int i,j,n;
	double x[100][2];
	double e[100];
	cin>>n;
	for(i=0;i<n;i++)
	{
		for(j=0;j<2;j++)
		{
			cin>>x[i][j];
		}
		e[i]=x[i][1]/x[i][0];
	}
	for(i=1;i<n;i++)
	{
		if((e[i]-e[0])>0.05)cout<<"better"<<endl;
		if((e[0]-e[i])>0.05)cout<<"worse"<<endl;
		if((e[i]-e[0])<0.05&&(e[0]-e[i])<0.05) cout<<"same"<<endl;
	}
	return 0;
}
int main()
{
	int n,i,j,k,a,b,x,y;
	double l,z;
	scanf("%d",&n);
	scanf("%d%d",&x,&y);
	l=1.0*y/x;
	for(i=0;i<n-1;i++)
	{
		scanf("%d%d",&a,&b);
		z=1.0*b/a;
		if(z>l&&z-l>=0.05)
		{
			printf("better\n");
		}
		else if(z<l&&l-z>=0.05)
		{
			printf("worse\n");
		}
		else{printf("same\n");}

	}
	return 0;

}
int main()
{
   int n,i,k;
   float bz,qt,cha;
   scanf("%d",&n);
   int gs[1000][2];
   for(i=0;i<n;i++)
     {
        for(k=0;k<2;k++)
          {
             scanf("%d",&gs[i][k]);
          }
      }
   bz=(float)gs[0][1]/gs[0][0];
   for(i=1;i<n;i++)
     {
        qt=(float)gs[i][1]/gs[i][0];
        cha=qt-bz;
        if(cha>0.05)
          {
             printf("better\n");
           }
         else if(cha<-0.05)
            {
               printf("worse\n");
             }
         else printf("same\n");
      }
   return 0;
}
main()
{
	int n,i;
double rat[100],e[100],su[100];
	scanf("%d",&n);
	for(i=0;i<n;i++)
	  {scanf("%lf %lf",&e[i],&su[i]);
	  rat[i]=su[i]/e[i];
	  if(i>0) 
	  	{
  		if(rat[i]-rat[0]>0.05)  printf("better\n");
  		else if(rat[i]-rat[0]<-0.05)  printf("worse\n");
  		else printf("same\n");
  	    }    
	  }
}
int main()
{
	int n,a,b,i,c,d,e,f;
	double p,q,o;
	scanf("%d",&n);
	scanf("%d%d",&a,&b);
	p=(double)b/a;
	for(i=0;i<n-2;i++)
	{
		scanf("%d%d",&c,&d);
		q=(double)d/c;
		if(p-q>0.05)
		{
			printf("worse");
                        printf("\n");
		}
		else
		{
			if(q-p>0.05)
			{
				printf("better");
                                printf("\n");
			}
			else
			{
				printf("same");
                                printf("\n");
			}
		}
	}
        scanf("%d%d",&e,&f);
        o=(double)f/e;
        if(p-o>0.05)
        {
		printf("worse");
	}
	else
	{
		if(o-p>0.05)
		{
			printf("better");
		}
		else
		{
			printf("same");
		}
	}
	return 0;
}
int main()
{
	int n,t,e;
	float eff[100],mod;
	cin>>n;
	cin>>t>>e;
	mod=e*1.0/t;
	for(int i=0;i<n-1;i++)
	{
		cin>>t>>e;
		eff[i]=e*1.0/t;
	}
	for(int i=0;i<n-1;i++)
	{
		if((eff[i]-mod)>0.05)
			cout<<"better";
		else if((mod-eff[i])>0.05)
			cout<<"worse";
		else cout<<"same";
		cout<<"\n\n";
	}
	return 0;
}
int main()
{
	int n;
	scanf("%d",&n);
	int i=0;
	double a,b,ratecoil;
	scanf("%lf %lf",&a,&b);
    ratecoil=b/a;
	double rate;
	for(i=0;i<n-1;i++)
	{
		a=b=rate=0;
		scanf("%lf %lf",&a,&b);
		rate=b/a;
		if(rate>ratecoil)
		{
			if((rate-ratecoil)>0.05)
				printf("better\n");
			else
				printf("same\n");
		}
		if(rate==ratecoil)
			printf("same\n");
		if(rate<ratecoil)
		{
			if((ratecoil-rate)>0.05)
				printf("worse\n");
		    else
			printf("same\n");
		}
	}
	return 0;
}
int main(){
	double zbl[100],yxbl[100];
	int i,n;
	scanf("%d",&n);
	for(i=0;i<n;i++){
		scanf("%lf%lf",&zbl[i],&yxbl[i]);
	}
	double yxl[100];
	for(i=0;i<n;i++){
		yxl[i]=yxbl[i]/zbl[i];
	}
	for(i=1;i<n;i++){
		if(yxl[0]-yxl[i]>0.05){
			printf("worse\n");
		}
		if(yxl[i]-yxl[0]>0.05){
			printf("better\n");
		}
		else if(yxl[0]-yxl[i]<=0.05&&yxl[i]-yxl[0]<=0.05){
			printf("same\n");
		}
	}
	return 0;
}
int main()
{
	int n;
	scanf("%d",&n);
	int hz[1000],zy[1000];
	scanf("%d %d",&hz[0],&zy[0]);
	double a,result[1000];
	a=zy[0]*1.0/hz[0]*1.0;
	int i;
	for(i=1;i<n;i++)
	{
		scanf("%d %d",&hz[i],&zy[i]);
		result[i]=zy[i]*1.0/hz[i]*1.0;
		if(result[i]-a>0.05)
		{
			printf("better\n");
		}
		 else if(result[i]-a<-0.05)
		{
			printf("worse\n");
		}
		 else if(result[i]-a>=-0.05 && result[i]-a<=0.05)
		{
			printf("same\n");
		}
	}
	return 0;
}
/**
 *@file   7.cpp
 *@author ??
 *@date   2013-10-6
 *@description
 *??????2??????
 */
int main()
{
	double n, sum, effectivenum, rate1, rate2;
	cin >> n;
	cin >> sum >> effectivenum;
	rate1 = effectivenum / sum;
	for (int i =2; i <= n; i++)
	{
		cin >> sum >> effectivenum;
		rate2 = effectivenum / sum;
		if (rate1 - rate2 > 0.05)
			cout << "worse" << endl;
		else if (rate1 - rate2 <= 0.05 && rate2 - rate1 <= 0.05)
			cout << "same" << endl;
		else if (rate2 - rate1 > 0.05 )
			cout << "better" << endl;
	}
	return 0;
}
int main()
{
	int a[100][2],n,i,j;
	double b[100];
	scanf("%d\n",&n);
	for(i=0;i<n;i++){
		for(j=0;j<2;j++){
			scanf("%d",&a[i][j]);
		}
	}
	for(i=0;i<n;i++){
		b[i]=(double)a[i][1]/(double)a[i][0];
	}
	for(i=1;i<n;i++){
		if(b[i]-b[0]>0.05){
			printf("better\n");
		}
		else if(b[0]-b[i]>0.05){
			printf("worse\n");
		}
		else{
			printf("same\n");
		}
	}
	return 0;
}
int main()
{
    void effect(double, double);
    int n, i, j;
    double k, data[100][2];
    
    cin >> n;
    
    for(i = 0; i < n; i++)
    {
        for(j = 0; j < 2; j++)  cin >> data[i][j];
    }
    
    k = data[0][1]/data[0][0];
    
    for(i = 1; i < n; i++)
    {
        effect(k, data[i][1]/data[i][0]);
    }
    
    return 0;
}

void effect(double k, double m)
{
    if((k-m) > 0.05) cout << "worse" << endl;
    else if((m-k) > 0.05) cout << "better" << endl;
    else cout << "same" << endl;
}
int main(){
	int n,z,e,i,k=0;
	double y[100];
	char x[100][10];
	scanf("%d",&n);
	for(i=0;i<n;i++){
		scanf("%d %d",&z,&e);
        y[i]=1.0*e/z;
        if(i!=0){
			if(y[i]-y[0]>0.05){
				strcpy(x[k],"better");
			}else if(y[0]-y[i]>0.05){
				strcpy(x[k],"worse");
			}else{
				strcpy(x[k],"same");
			}
			k++;
		}
	}
	for(i=0;i<k;i++){
		printf("%s\n",x[i]);
	}
	return 0;
}
int main()
{
    int n,i;
    double x;
    int a[100],b[100];
    scanf("%d",&n);
    for(i=0;i<n;i++){
        scanf("%d",&a[i]);
        scanf("%d",&b[i]);
    }
    x=(double)(b[0])/(double)(a[0]);
    for(i=1;i<n;i++){
        if((double)(b[i])/(double)(a[i])-x>0.05){
            printf("better");
            printf("\n");
        }
        else if(x-(double)(b[i])/(double)(a[i])>0.05){
            printf("worse");
            printf("\n");
        }
        else{
            printf("same");
            printf("\n");
        }
    }
    return 0;

}
int main() {
	int n;
	cin >> n;
	int total, eff; /* total is to store the total number of the cocktail 
					and eff is to store the effective number of the cocktail */
	cin >> total >> eff;
	double e1; /* to calculate the efficency of the cocltail */
	e1 = ((double)(eff)) / ((double)(total));
	int total2, eff2; /* to store the total number andthe effective number of the other methods */ 
	double e2;
	for(int i = 0; i < n - 1; i++) {
		cin >> total2 >> eff2;
		e2 = ((double)(eff2) / (double)(total2));
		if(e2 - e1 > 0.05) cout << "better" << endl;
		else {
			if(e1 - e2 > 0.05) cout << "worse" << endl;
			else cout << "same" << endl;
		}
	}
	return 0;
}
int main(){
	int n,i,a,b;
	double sz[50],c;
	scanf("%d",&n);
	scanf("%d %d",&a,&b);
	c=1.0*b/a;
	for(i=0;i<n-1;i++){
		scanf("%d %d",&a,&b);
		sz[i]=1.0*b/a;
	}
	for(i=0;i<n-1;i++){
		if(sz[i]-c>0.05){
			printf("better\n");
		}
		else if(c-sz[i]>0.05){
			printf("worse\n");
	}
	else{
		printf("same\n");
	}
	}
	return 0;
}
int main(){
	int n,i,z[1000],y[1000],a,b;
	float d,e[1000];
	scanf("%d",&n);
	scanf("%d %d",&a,&b);
	d=b*1.0/a;
	for(i=0;i<n-1;i++){
scanf("%d %d",&z[i],&y[i]);
    e[i]=y[i]*1.0/z[i];
	}
	for(i=0;i<n-1;i++){
		if(e[i]-d>0.05){
        printf("better\n");
		}else if(d-e[i]>0.05){
			printf("worse\n");
		}else{
			printf("same\n");
	}
	}

	return 0;
}
int main (){

int n,i,sz[100][2];
double bj[100];

scanf ("%d",&n);
for(i=0;i<n;i++)
	{scanf ("%d %d",&sz[i][0],&sz[i][1]);
	bj[i]=1.0*sz[i][1]/sz[i][0];
	}

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

return 0;
}