semeru/Code-Code-CloneDetection-POJ104 huggingface dataset:
int main()
{
	int a[200][3],n,i;
	float b[200];
	cin>>n;
	for(i=1;i<=n;i++)
	{
		cin>>a[i][1]>>a[i][2];
		b[i]=(float)a[i][2]/a[i][1];
	}
	   for(i=2;i<=n;i++)
	   {  if(b[i]-b[1]>0.05)
		  cout<<"better";
	      
			   
		  else if(b[1]-b[i]>0.05)
			  cout<<"worse";
		  else 
			  cout<<"same";
		  cout<<endl;
	   }
	   return 0;
}
/*
 * shit.cpp
 *
 *  Created on: 2012-10-15
 *      Author: Administrator
 */

int main()
{
	int n;
	cin>>n;
	double a[n],b[n];
	for(int i=0;i<n;i++)
	{
	    cin>>a[i]>>b[i];
	    a[i]=b[i]/a[i];
	    if(i!=0)
	    {
	    	if(a[i]-a[0]>0.05) cout<<"better"<<endl;
	    	else if(a[0]-a[i]>0.05) cout<<"worse"<<endl;
	    	else cout<<"same"<<endl;
	    }
	}
	return 0;
}
int main(){
	int n,x;
	double z[100],y[100];
	scanf("%d",&n);
	for(x=0;x<n;x++){
		scanf("%lf%lf",&z[x],&y[x]);
	}
	for(x=1;x<n;x++){
		if(y[x]/z[x]>(y[0]/z[0]+0.05)){printf("better");}
		else if(y[x]/z[x]<(y[0]/z[0]-0.05)){printf("worse");}
		else{printf("same");}
		printf("\n");}
		
	return 0;
}
int main()
{
int n,i;
double tm,tmt,c,a[100];
scanf("%d",&n);
for(i=0;i<n;i++)
{
scanf("%lf %lf",&tm,&tmt);
a[i]=tmt/tm;
}
for(i=1;i<n;i++)
{
c=a[i]-a[0];
if(c>0.05){printf("better\n");}
if(c<-0.05){printf("worse\n");}
if(c>=-0.05&&c<=0.05){printf("same\n");}
}
return 0;
}
int main()
{
	int n,i,x[1000],y[1000];
	double a,b;
	scanf("%d",&n);
	for(i=0;i<n;i++){
		scanf("%d%d",&x[i],&y[i]);
	}
	a=1.0*y[0]/(1.0*x[0]);
	for(i=1;i<n;i++){
		b=1.0*y[i]/(1.0*x[i]);
		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,zong,you,i;
double x,y;
x=0.0,y=0.0;
scanf("%d",&n);
scanf("%d %d",&zong,&you);
x=1.0*you/zong;
for(i=0;i<n-1;i++){
scanf("%d %d",&zong,&you);
y=1.0*you/zong;
if((y-x)*100>5){printf("better\n");}
else if((x-y)*100>5){printf("worse\n");}
else {printf("same\n");}
}
return 0;
}
int main(int argc, char* argv[])
{
	int n,i;
	int p[100],pcu[100];
	double per[100];
	scanf("%d",&n);
	for(i=0;i<n;i++){
		scanf("%d %d",&p[i],&pcu[i]);
		per[i]=(double)pcu[i]/p[i]*100;
	}
	for(i=1;i<n;i++){
		if(per[i]-per[0]>5) printf("better\n");
		else if(per[0]-per[i]>5) printf("worse\n");
		else printf("same\n");
	}
	

	return 0;
}
int main(){
	int n,a,b,c,d;
	double biao,linshi;
	scanf("%d",&n);
	scanf("%d %d",&a,&b);
	biao=(double)b/(double)a;
	for(int i=0;i<n-1;i++){
		scanf("%d %d",&c,&d);
		linshi=(double)d/(double)c;
		if(biao-linshi>=0.05){
			printf("worse\n");
		}
		  else if(linshi-biao>=0.05){
			printf("better\n");
		}
		else {
			printf("same\n");
			}
	}
	return 0;
}
int main()
{
	double s[100][2];
	int i,j,n;
	double a,k,b;
	scanf("%d",&n);
	for(i=0;i<n;i++)
	{
		for(j=0;j<2;j++){
		   scanf("%lf",&s[i][j]);
	}}
	a=s[0][1]/s[0][0];
	for(i=1;i<n-1;i++){
		k=s[i][1]/s[i][0];
		if((k-a)>0.05){
			printf("better\n");}
		else if((a-k)>0.05){
			printf("worse\n");}
		else {
			printf("same\n");
	}}
	b=s[n-1][1]/s[n-1][0];
    if((b-a)>0.05){
			printf("better");}
		else if((a-b)>0.05){
			printf("worse");}
		else {
			printf("same");}
	return 0;
}
int main()
{
	int n,i,a[10000],b[10000];
	double s,m,q,c[10000];
	scanf("%d",&n);
	scanf("%d%d",&a[0],&b[0]);
	s=b[0]*1.0/a[0];
	for(i=1;i<n;i++)
	{
		scanf("%d%d",&a[i],&b[i]);
	}
	for(i=1;i<n;i++)
	{
		c[i]=b[i]*1.0/a[i];
		m=s-c[i];
		q=c[i]-s;
		if(m>0.05)
			printf("worse\n");
		if(q>0.05)
			printf("better\n");
		if(m<=0.05&&q<=0.05)
			printf("same\n");
	}
	return 0;
}
// homework : ?????
// name     : ???
// date     : 9.29


int main()
{
	double n, a[3], b[3];
	cin >> n >> a[0] >> a[1];
	a[2] = a[1] / a[0];
	for( int i = 1; i < n; i++)
	{
		cin >> b[0] >> b[1];
		b[2] = b[1] / b[0];
		if( b[2] - a[2] > 0.05 ) 
			cout << "better" << endl;
		if( a[2] - b[2] > 0.05 )
			cout << "worse" << endl;
		if( abs(a[2] - b[2]) <= 0.05 )
			cout << "same" << endl;
	}


	return 0;
}
int main()
{
  int n,i,j;
  float all[1000],some[1000];
  scanf("%d",&n);
  for(i=0;i<n;i++)
  {
    scanf("%f %f",&all[i],&some[i]);
  }
  for(j=1;j<n;j++)
  {
    if(((some[j]/all[j])-(some[0]/all[0]))>0.05)
    {
      printf("better\n");
    }
    else
   {
    if(((some[0]/all[0])-(some[j]/all[j]))>0.05)
    {
      printf("worse\n");
    }
    else
    {
      printf("same\n");
    }
   }
  }
  return 0;
}
int main()
{
  double n,x,y;
  double a,b;
  double m,p,q,h;
  scanf("%lf",&n);
  scanf("%lf %lf",&x,&y);
  m=y/x;
  int i=2;
  while(i<=n){
    scanf("%lf %lf",&a,&b);
    p=b/a;
    q=m-p;
    h=p-m;
    if(h>0.05){
      printf("better\n");
    }else if(q>0.05){
      printf("worse\n");
    }else{
      printf("same\n");
    }
    i++;
  }
  return 0;
}
int main(){
int n,i;
scanf("%d",&n);
double m,p,c,q; 
for(i=0;i<n;i++){		
		scanf("%lf%lf",&m,&p);
		if(i==0){
	c=p/m;
		}
	else{
	q=p/m;
	if(q-c>0.05){
	printf("better\n");
	}
	else if(c-q>0.05){
	printf("worse\n");
	}
	else{
	printf("same\n");
	}
	}
	}
return 0;
}
int main()
{
	int n,k;
	double groups[1000][3];
	cin>>n;
	for(k=0;k<n;k++)
	{
		cin>>groups[k][0]>>groups[k][1];
	}
	for(k=0;k<n;k++)
	{
		groups[k][2]=groups[k][1]/groups[k][0];
	}
	for(k=1;k<n;k++)
	{
		if((groups[k][2]-groups[0][2])>0.05)
			cout<<"better"<<endl;
		else if((groups[0][2]-groups[k][2])>0.05)
			cout<<"worse"<<endl;
		else
			cout<<"same"<<endl;
	}
	return 0;
}
int main()
{
	int n,i;
	int zs[1000],yx[1000];
	double x,y[1000];
	scanf("%d",&n);
	for(i=0;i<n;i++){
		scanf("%d %d",&zs[i],&yx[i]);
        x=1.0*100*yx[0]/zs[0];
		y[i]=1.0*100*yx[i]/zs[i];
	}
	for(i=1;i<n;i++){
		if(y[i]-x>5.0){
			printf("better\n");
		}else if(x-y[i]>5.0){
			printf("worse\n");
		}else{
			printf("same\n");
		}
	}
	return 0;
}
int main(){
	int n,a,b,i;
	double q,e;
	scanf("%d\n",&n);
    scanf("%d %d\n",&a,&b);
	q=(double)b/(double)a;
	for(i=2;i<=n;i++){
		scanf("%d %d\n",&a,&b);
        e=(double)b/(double)a;
    if(e-q>0.05) printf("better\n");
	if(q-e>0.05) printf("worse\n");
	if((e-q)*(e-q)<=0.0025) printf("same\n");
	}
	return 0;
}
int main()
{
	int n,i,j,k,b[100],c[100];
	double m,a[100];
	scanf("%d",&n);
	for(i=0;i<n;i++)
	{
		scanf("%d %d",&b[i],&c[i]);
		a[i]=(double)c[i]/b[i];
	}
	for(i=1;i<n;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");
		}
	}
	return 0;
}
int main()
{
	int n,x0,y0,x,y;
	double k;
	cin>>n;
	cin>>x0>>y0;
	k=(double)y0/x0;
	for(n;n>=2;n--)
	{
		cin>>x>>y;
		if((double)y/x>k+0.05)
			cout<<"better"<<endl;
		else if((double)y/x<k-0.05)
			cout<<"worse"<<endl;
		else
			cout<<"same"<<endl;
	}
	return 0;
}
int main()
{
	int n,allc,curc,all[100],cur[100],i;
	double cp,op[100];
	scanf("%d",&n);
	scanf("%d%d",&allc,&curc);
	cp=((double)curc)/((double)allc)*100;
	//printf("%lf\n",cp);
	for(i=0;i<n-1;i++)
	{
		scanf("%d%d",&all[i],&cur[i]);
		op[i]=((double)cur[i])/((double)all[i])*100;
		//printf("%lf\n",op[i]);
	}
	for(i=0;i<n-1;i++)
	{
		if(op[i]-cp>5)printf("better\n");
		else if(op[i]-cp<-5)printf("worse\n");
		else printf("same\n");
	}
	return 0;
}
int main()
{
	int i,b,n,d,t=0;
	double a;
	int z[100],x[100];
	scanf("%d",&n);

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

}
int main(){
	int n,a,b,c,d,i;
	float x,y,sz[1000];
	scanf("%d",&n);
	scanf("%d%d",&a,&b);
	x=(float)b/a;
	for(i=1;i<n;i++){
		scanf("%d%d",&c,&d);
		sz[i]=(float)d/c;
	}for(i=1;i<n;i++){
		if(sz[i]-x>0.05){
			printf("better\n");
		}else if(x-sz[i]>0.05){
			printf("worse\n");
		}else{
			printf("same\n");
		}
	}return 0;
}
int main(){
	double n,x,y;
	double a[100],b[100];
	double e,c;
	double xl[100];
	scanf("%lf%lf%lf",&n,&x,&y);
	e=y/x;
	for(int i=0;i<n-1;i++){
		scanf("%lf%lf",&a[i],&b[i]);
		xl[i]=b[i]/a[i];
	}
	for(int k=0;k<n-1;k++){
		c=xl[k]-e;
		if(c>0.05){
			printf("better\n");
		}
		if(c<-0.05){
			printf("worse\n");
		}
		if(-0.05<=c&&c<=0.05)
			printf("same\n");
	}

	
	return 0;
}
//?? 2011 11.5
//?? ???
//?? ???????

int main()
{
	int n;
	int i;
	double standard;
	double result;
	float a[100][2];
	cin>>n;
	for(i=0;i<=n-1;i++)
	{
		cin>>a[i][0]>>a[i][1];
	}
	standard=a[0][1]/a[0][0];
	for(i=1;i<=n-1;i++)
	{
		result=a[i][1]/a[i][0];
		if((result-standard)>0.05)
			cout<<"better"<<endl;
		 else if((standard-result)>0.05)
			       cout<<"worse"<<endl;
		      else
			        cout<<"same"<<endl;
	}
	return 0;



}
int main()
{
	int a[100],i,d=0,n,e;
	double b,c,s[100];
	scanf("%d",&n);
	scanf("%lf%lf",&b,&c);
	s[0]=c/b;
	for(i=1;i<n;i++)
	{
		scanf("%lf%lf",&b,&c);
		s[i]=c/b;
	}
	for(i=1;i<n;i++)
	{
		if(s[i]-s[0]>=0.05)
		{
			printf("better\n");
		}
		if(s[i]-s[0]<=-0.05)
		{
			printf("worse\n");
		}
		if(s[i]-s[0]<0.05&&s[i]-s[0]>-0.05)
		{
			printf("same\n");
		}
	}
	return 0;
}
int main(){
    int n;
    int sz[100];
    int sa[100];
    double sd[100];
    scanf("%d", &n);
    for(int i=0;i<n;i++){
        scanf("%d %d", &sz[i], &sa[i]);
        sd[i]=(sa[i]*1.0)/sz[i];
    }
    for(int i=1;i<n;i++){
        if((sd[i]-sd[0])>0.05){printf("better\n");}
         else if((sd[0]-sd[i])>0.05){printf("worse\n");}
          else{printf("same\n");}
    }
    return 0;
}
int main(){
int n, i;
scanf ("%d", &n);
float a[n], e[n];
for(i=1;i<=n;i++){
scanf ("%f %f", &a[i], &e[i]);
if (i>1){
if (e[i]/a[i]>0.05+e[1]/a[1]){
printf ("better");
printf ("\n");}
else if (e[i]/a[i]<e[1]/a[1]-0.05){
printf ("worse");
printf ("\n");}
else printf("same\n");}}
return 0;}
main()
{     int n;scanf("%d",&n);
      float* a=(float*)malloc(n*sizeof(float));
      float* b=(float*)malloc(n*sizeof(float));
      float* c=(float*)malloc(n*sizeof(float));
      for(int i=0;i<n;i++)
     {scanf("%f %f",&a[i],&b[i]);
      c[i]=b[i]/a[i];
     }
      for(int 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");
      }      
      
      
      
     
}
int main()
{
    int n;                                   //??n
    cin>>n;                                  //??n
    float total[100],effective[100];         //?????????????
    int i;                                   //??????i
    for(i=0;i<n;i++)
    {
        cin>>total[i]>>effective[i];        //???????
    }
    float x,y[100];                         //????????????????
    x=effective[0]/total[0];                //????????
    for(i=1;i<n;i++)
    {

        y[i]=effective[i]/total[i];         //??????????????
        if(y[i]-x>0.05)
            cout<<"better"<<endl;
        else
        {
            if(x-y[i]>0.05)
            cout<<"worse"<<endl;
            else cout<<"same"<<endl;        //????????????
        }
    }
    return 0;
}
int main()
{
	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]);
	}
    for(i=1;i<n;i++)	
	{
		c[i]=1.00*b[i]/a[i]-1.00*b[0]/a[0];
	}
	for(i=1;i<n;i++)
	{
		if(c[i]>0.05)
		{
			 printf("better\n");
		}
		else if(c[i]<-0.05)
		{
            printf("worse\n");
		}
		else if(c[i]<=0.05&&c[i]>=-0.05)
		{
	         printf("same\n");
		}
	}
	return 0;
	}
int main(){
	int n,sj[1000][2],i;
	float c[1000];
	scanf("%d",&n);
	for(i=0;i<n;i++){
		scanf("%d%d",&sj[i][0],&sj[i][1]);
		c[i]=(float)sj[i][1]/sj[i][0];
	}
	for(i=1;i<n;i++){
		if(c[i]>c[0]&&c[i]-c[0]>0.05){
			printf("better\n");
		}
		else if(c[0]>c[i]&&c[0]-c[i]>0.05){
			printf("worse\n");
		}
		else{
			printf("same\n");
		}
	}
    return 0;
}
int main(){
	int n;
	int jwjzsh,jwjyx;
	int zsh[100],yx[100];
	scanf("%d",&n);
	scanf("%d%d",&jwjzsh,&jwjyx);
	double rate0;
	rate0=1.0*jwjyx/jwjzsh;
	double rate[100];
	int i;
	for(i=1;i<n;i++){
		scanf("%d%d",&zsh[i],&yx[i]);
		rate[i]=1.0*yx[i]/zsh[i];
		double ch;
		ch=rate[i]-rate0;
		if(ch>=0.05){
			printf("better\n");
		}
		else if(ch>=-0.05&&ch<=0.05){
			printf("same\n");
		}
		else if(ch<=-0.05){
			printf("worse\n");
		}
	}
	return 0;
}
//*****************************************
//* ???????? **
//* ?????? 1300012741 **
//* ???2013.9.25 **
//*****************************************


int main()
{
    int i, num; // ???????????
    double origin, better, origin_temp, better_temp; // ??????????????????????
    cin >> num; // ??????
    cin >> origin >> better; // ?????????

    for ( i = 1; i < num; i++ ) // ??????-1?
    {
        cin >> origin_temp >> better_temp; // ????????
        if ( better / origin - better_temp / origin_temp > 0.05 ) // ????
            cout << "worse" << endl;
        else if ( better_temp / origin_temp - better / origin > 0.05 ) //????
            cout << "better" << endl;
        else // ?????
            cout << "same" << endl;
    }

    return 0;
}
int main()
{
	int n;
	cin>>n;
	double sum;
	double efficient;
	double sample;
	int i=0;
	for (i=1;i<=n;i++)
	{
		cin>>sum>>efficient;
		if (i==1)
			sample=efficient/sum;
		else if((efficient/sum)-sample>0.05)
			cout<<"better"<<endl;
		else if (sample-(efficient/sum)>0.05)
			cout<<"worse"<<endl;
		else
			cout<<"same"<<endl;

	}
	return 0;
}
int main()
{
  int n;
  double a,b;
  double x,y;
  scanf("%d",&n);
  scanf("%lf%lf",&a,&b);
  while(--n)
  {
    scanf("%lf%lf",&x,&y);          
    if(b/a-y/x>0.05) printf("worse\n");
    else if(b/a-y/x<-0.05) printf("better\n");
         else printf("same\n");
  }
 return 0;    
}
int main(){
	int n,i;
	double m;
	int a[1000],b[1000];
	double xl[100];
	scanf("%d",&n);
	for(i=0;i<n;i++){
		scanf("%d %d",&a[i],&b[i]);
	}
	xl[0]=(1.0*b[0]/a[0])*100;
	for(i=1;i<n;i++){
		xl[i]=(1.0*b[i]/a[i])*100;
		m=xl[0]-xl[i];
		if(m>5){
			printf("worse\n");
		}else if(m<(-5)){
			printf("better\n");
		}else if(m<=5&&m>=(-5)){
			printf("same\n");
		}
	}

	return 0;
}
int main()
{
	int i,num,n[100],m[100];
	float w[100];
	scanf("%d",&num);
	for(i=0;i<num;i++)
	{
		scanf("%d%d",&n[i],&m[i]);
	}
	w[0]=(float)m[0]/n[0];
	for(i=1;i<num;i++)
	{
		w[i]=(float)m[i]/n[i];
		if(w[i]-w[0]>0.05)
		{
			printf("better\n");
		}
		if(w[0]-w[i]>0.05)
		{
			printf("worse\n");
		}
		if(w[0]-w[i]<=0.05 && w[i]-w[0]<=0.05)
		{
			printf("same\n");
		}
	}
	return 0;
}
int main()
{int n,i;
cin>>n;
float a[n],b[n],c;
cin>>a[0]>>b[0];
c=b[0]/a[0];
for(i=1;i<n;i++)
{cin>>a[i]>>b[i];
if(b[i]/a[i]<=c+0.05&&b[i]/a[i]>=c-0.05)
cout<<"same"<<endl;
else if(b[i]/a[i]>c+0.05)
cout<<"better"<<endl;
else
cout<<"worse"<<endl;}
return 0;
}
int main()
{
	int n,i,j;
	float a,b;
	int sz[100][2];
	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++)
	{
		b=(float)sz[i][1]/sz[i][0];
		if(a-b>0.05)
		{
			printf("worse\n");
			continue;
		}
		if(b-a>0.05)
		{
			printf("better\n");
			continue;
		}
		else
		{
			printf("same\n");
			continue;
		}
	}
	return 0;
}
int main()
{
	int n,i;
	float a[100],b[100],c[100];
	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[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 n,a,b,k,i;
	double s;
	scanf("%d%d%d",&n,&a,&b);
	s=1.0*b/a;
	k=n-1;
	int *m=(int*)malloc(sizeof(int)*k);
	int *p=(int*)malloc(sizeof(int)*k);
	double *l=(double*)malloc(sizeof(double)*k);
	for(i=0;i<n-1;i++){
		scanf("%d%d",&m[i],&p[i]);
		l[i]=1.0*p[i]/m[i]-s;
	}
	for(i=0;i<n-1;i++){
		if(l[i]>0.05){
			printf("better\n");
		}else if(l[i]<-0.05){
			printf("worse\n");
		}else{
			printf("same\n");
		}
	}
	free(m);
	free(l);
	free(p);
	return 0;
}
int main()
{int n,i=0;
cin>>n;
float a[n],b[n];
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()
{
double total[100];
double good[100];
double pre[100];
int n,i;
cin>>n;
for(i=0;i<=n-1;i++){
	cin>>total[i];
	cin>>good[i];
	pre[i]=good[i]/total[i];
}
for(i=1;i<=n-1
	;i++){
	if(pre[i]-pre[0]>=0.0500000){
		cout<<"better"<<endl;
	}

	if(pre[0]-pre[i]>0.0500000) {
		cout<<"worse"<<endl;
	}
	if((pre[i]-pre[0]<0.0500000&&pre[i]-pre[0]>=0)||(pre[0]-pre[i]<=0.05000000&&pre[0]-pre[i]>=0)){
		cout<<"same"<<endl;
	}

	cout<<endl;
}

return 0;
}
int main(){
	int n,i,a[100],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");
			continue;
		}
		if((1.0*b[0]/a[0])-(1.0*b[i]/a[i])>0.05){
			printf("worse\n");
			continue;
		}
		else printf("same\n");
	}
	return 0;
}
int main()
{
	int n,i,j;
	int zongshu[1000],youxiao[1000];
	double x,y[1000];
	scanf("%d",&n);
	for(i=0;i<n;i++)
	{
		scanf("%d%d",&zongshu[i],&youxiao[i]);
	}
	x=(double)youxiao[0]/zongshu[0];
	for(i=1;i<n;i++)
	{
		y[i]=(double)youxiao[i]/zongshu[i];
		if(x-y[i]>0.05)
		{
			printf("worse\n");
		}
		else if(y[i]-x>0.05)
		{
			printf("better\n");
		}
		else
		{
			printf("same\n");
		}
	}
	return 0;
}
int main()
{
	int n;
	scanf("%d",&n);
	int m,l;
	scanf("%d %d",&m,&l);
	float eff=(float)l/(float)m;
	for(int i=1;i<n;i++)
	    {
		int o,p;
		scanf("%d %d",&o,&p);
		float exp=(float)p/(float)o;
		if(exp-eff>0.05)
		   printf("better\n");
		else
		   if(exp-eff<-0.05)
		      printf("worse\n");
		else
		   printf("same\n");
		}
}
int main(){
int n;
scanf("%d",&n);
int jtl,jyx,qtl,qyx;
double rate1,rate2 ;
scanf("%d%d",&jtl,&jyx);
rate1=jyx*1.0/jtl;
for(int i=1;i<n;i++){
scanf("%d%d",&qtl,&qyx);
rate2=qyx*1.0/qtl;
if(rate2-rate1>0.05)
printf("better\n");
else if(rate1-rate2>0.05)
printf("worse\n");
else
printf("same\n");
}
return 0;
}
int main()
{ int k,b,n,i;
  double a,m,x,y;
  cin>>k;
  cin>>a>>b;
  x=b/a;
  for (i=1;i<=(k-1);i++)  
  {
  cin>>m>>n;
  y=n/m;
  if (y-x>0.05)
	  cout<<"better"<<endl;
  if(x-y>0.05) 
	  cout<<"worse"<<endl;
  if(y-x<=0.05 & x-y<=0.05)
	  cout<<"same"<<endl;
  }
  return 0;
}
int main()
{
	int n,i,k;
    int s[10000][2];
	double b;
	scanf("%d",&n);
	for(i=0;i<n;i++)
	{
		for(k=0;k<2;k++)
		{
	scanf("%d",&s[i][k]);
		}
	}
    b=1.0*s[0][1]/s[0][0];
	for(i=1;i<n;i++)
	{ 
		if(1.0*s[i][1]/s[i][0]>b+0.05)
		{
			printf("better\n");
		}
		else if(1.0*s[i][1]/s[i][0]<b-0.05)
		{
			printf("worse\n");
		}
		else if(1.0*s[i][1]/s[i][0]>=b-0.05&&1.0*s[i][1]/s[i][0]<=b+0.05)
		{
			printf("same\n");
		}
	}
			
		return 0;

}
int main()
{
	int n,i;
	cin>>n;
	double a[n],b[n];
	double y[n-1],x;
	for(i=0;i<=n-1;i++)
		cin>>a[i]>>b[i];
	x=b[0]/a[0];
	for (i=1;i<=n-1;i++)
		{y[i-1]=b[i]/a[i];}
	for (i=0;i<=n-2;i++)
	    {if((y[i]-x)>0.05) cout<<"better"<<endl;
	    else if ((x-y[i])>0.05) cout<<"worse"<<endl;
	    else cout<<"same"<<endl;}
	return 0;
}
int main(){
	int n,a,b,i;
	double x;
	scanf("%d\n",&n);
	scanf("%d %d\n",&a,&b);
	x=(double)b/a;
	for(i=0;i<n-1;i++){
		double y;
		int m,h;
		scanf("%d %d",&m,&h);
		y=(double)h/m;
		if(y-x>0.05){
			printf("better\n");
		}
		if(x-y>0.05){
			printf("worse\n");
		}
		if(x-0.05<=y&&y<=x+0.05){
			printf("same\n");
		}
	}
    return 0;
}
int main(){
    int n,i,a,b;
    cin>>n;
    int cc[n+1];
    double bb[n+1];
    for(i=1;i<=n;i++){
    cin>>a>>b;
    bb[i]=(double)b/(double)a; 
         }
   for(i=2;i<=n;i++){
    if(bb[i]-bb[1]>0.05)
    cc[i]=2;
    if(bb[i]-bb[1]<-0.05)
    cc[i]=0;
    if(bb[i]-bb[1]<=0.05&&bb[i]-bb[1]>=-0.05)
    cc[i]=1;
     }
      for(i=2;i<=n;i++){
   if(cc[i]==0)
    cout<<"worse"<<endl;
    if(cc[i]==1)
    cout<<"same"<<endl;
    if(cc[i]==2)
    cout<<"better"<<endl;
}
return 0;
}
int main(){
int n;
scanf("%d",&n);
double chu1,chu2;
scanf("%lf%lf",&chu1,&chu2);
int i;
double bi1[100],bi2[100];
for(i=0;i<n-1;i++)
{
    scanf("%lf%lf",&bi1[i],&bi2[i]);
}

for(i=0;i<n-1;i++)
{

    if(chu2/chu1-bi2[i]/bi1[i]>0.05)

        printf("worse\n");
    else if(bi2[i]/bi1[i]-chu2/chu1>0.05)
        printf("better\n");
    else 
        printf("same\n");
}
return 0;
}
int main()
{
	int n=0,i=0;
	double a[100],b[100];
	double c[100];
	memset(a,0,sizeof(a));
	memset(b,0,sizeof(b));
	memset(c,0,sizeof(c));
	cin>>n;
	for(i=1;i<=n;i++)
	{
		cin>>a[i]>>b[i];
		c[i]=b[i]/a[i];
	}
	for(i=2;i<=n;i++)
	{
		if(c[i]-c[1]>0.05)
			cout<<"better"<<endl;
		else if(c[1]-c[i]>0.05)
			cout<<"worse"<<endl;
		else
			cout<<"same"<<endl;
	}
	return 0;
}
int main(){
        int n,shiyan[999],youxiao[999];
		double xo,x;
		scanf("%d",&n);
		for(int i=0;i<n;i++){
		    scanf("%d %d",&shiyan[i],&youxiao[i]);
		}
		xo=1.0*youxiao[0]/shiyan[0];
		for(int w=1;w<n;w++){
		   x=1.0*youxiao[w]/shiyan[w];
		   if(xo-x>0.05){
		        printf("worse\n");
		   }
		   else if(x-xo>0.05){
		        printf("better\n");
		   }
		   else if(x-xo<=0.05&&xo-x<=0.05){
		        printf("same\n");
		   }
		}
		return 0;
}
main()
{
 int n,p,q,a,b;
 float r,s;
 scanf("%d %d %d",&n,&p,&q);
 r=(float)q/(float)p;
 for(int i=1;i<=n-1;i++)
            {
             scanf("%d %d",&a,&b);
             s=(float)b/(float)a;
             if(r>s+0.05)
                       printf("worse\n");
             else if(s>r+0.05)
                       printf("better\n");
             else printf("same\n");           
            } 
 getchar();
 getchar();
 getchar();    
}
int main(){
	int n,zbl[200],yxbl[100];
	double x,y[100];
	scanf("%d",&n);
	scanf("%d%d",&zbl[0],&yxbl[0]);
	x=1.0*yxbl[0]/zbl[0];
	for(int i=1;i<n;i++){
		scanf ("%d%d",&zbl[i],&yxbl[i]);
		y[i]=1.0*yxbl[i]/zbl[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;
scanf("%d",&n);
int i;
double sz[256],sz2[256] ;
double youxiao[256];
for(i=0;i<n;i+=1)
{scanf("%lf",&(sz[i]));
scanf("%lf",&(sz2[i]));						
youxiao[i]=sz2[i]/sz[i];}
for(i=1;i<n;i+=1)
{if(youxiao[i]-youxiao[0]>0.05){printf("better\n");}		
else if(youxiao[0]-youxiao[i]>0.05){printf("worse\n");}	
else {printf("same\n");}		
	}

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


}



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

}
int main()
{
	int i,n,a,b;
	double c;
	scanf("%d",&n);
	scanf("%d%d",&a,&b);
	c=1.000000000*b/a;
	for(i=1;i<n;i++)
	{
		scanf("%d%d",&a,&b);
		if((1.000000000*b/a-c)>0.05){printf("better\n");}
		else if((1.000000000*b/a-c)<-0.05){printf("worse\n");}
		else if((1.000000000*b/a-c)>-0.05&&(1.000000000*b/a-c)<0.05){printf("same\n");}
	}
	return 0;
}
int main ()
{
	int n ,i;
	double a0,b0,a,b;
	double p1,p2;
	cin>>n;
	cin>>a0>>b0;
	p1=b0/a0;
	for(i=1;i<=n-1;i++)
	{
		cin>>a>>b;
		p2=b/a;
		if(fabs(p1-p2)<=0.05)
			cout<<"same"<<endl;
		else if (p1-p2>0.05)
			cout<<"worse"<<endl;
		else
			cout<<"better"<<endl;
	}
	return 0;
}