semeru/Code-Code-CloneDetection-POJ104 huggingface dataset:
int main()
{
	int i ,j, n ;
	double old , hen[2] , test[20][2]={0} , NEW[20] ;
	cin >> n >> hen[0] >> hen[1] ;
	for (i = 0 ; i < n-1 ; i++)
		for (j = 0 ; j <= 1 ; j++)
			cin >> test[i][j] ;
	old = hen[1] / hen[0] ;
	for (i=0; i <n-1 ; i ++)
		NEW[i]=test[i][1]/test[i][0] ;
	for (i = 0 ; i < n-1 ; i++)
	{	if(old - NEW[i]>0.05 )	cout << "worse" <<endl;
		else if(NEW[i] - old>0.05 )	cout << "better" <<endl;
		else cout << "same" << endl ;
	}
	return 0 ;
}
int main()
{
	int n,*m1,*m2,i;
	double *bl;
	scanf("%d",&n);
	m1=(int*)malloc(sizeof(int)*n);
	m2=(int*)malloc(sizeof(int)*n);
	bl=(double*)malloc(sizeof(double)*n);
	for(i=0;i<n;i++)
	{
		scanf("%d%d",&m1[i],&m2[i]);
	}
	bl[0]=(double)m2[0]/m1[0];
	for(i=1;i<n;i++)
	{
		bl[i]=(double)m2[i]/m1[i];
		if(bl[i]-bl[0]>0.05)
		{
			printf("better\n");
		}
		else
		{
			if(bl[0]-bl[i]>0.05)
			{ 
			    printf("worse\n");
			} 
			else
			{
				printf("same\n");
			}
		}
	}
	free(m1);
	free(m2);
	free(bl);
	return 0;
}
int main()
{
    int n;
    float a[100];
    float b[100];
    float effect[100];
    int i;
    cin >> n;
    for(i = 0; i < n; i++)
    {
          cin >> a[i];
          cin >> b[i];
          effect[i] = b[i] / a[i];
    }
    for(i = 1; i < n; i++)
    {
          if(effect[i] - effect[0] > 0.05)
          {
              cout << "better" << endl;
          }
          else if(effect[0] - effect[i] > 0.05)
               { 
                   cout << "worse" << endl;
               }
               else
               {
                   cout << "same" << endl;
               }
    }
    return 0;
}
int main()
{
	int n,i,j;
	double a,b;
	scanf("%d",&n);
	double*s=(double*)malloc(sizeof(double)*n);
	double*z=(double*)malloc(sizeof(double)*n);
	for(i=0;i<n;i++)
	{
		scanf("%d %d",&s[i],&z[i]);
	}
	for(i=1;i<n;i++)
	{
		a=z[0]*1000/s[0];
		b=z[i]*1000/s[i];
		if(b-a>50)
			{
				printf("better\n");
			}
		else if(a-b>50)
		{
			printf("worse\n");
		}
		else {
			printf("same\n");
		}

		
	}
		return 0;
}
int main()
{
	int n;
	cin>>n;
	double yuan=0.0,z=0.0;
	double yuanx=0,yuany=0;
   double x=0,y=0;
	cin>>yuanx>>yuany;
	yuan=yuany/yuanx;
	for(int i=1;i<n;i++)
	{
		cin>>x>>y;
		z=y/x;
		if(z>yuan)
		{
			if(z-yuan>0.05)cout<<"better"<<endl;
			else cout<<"same"<<endl;
		}
		else
		{
			if(yuan-z>0.05)cout<<"worse"<<endl;
			else cout<<"same"<<endl;
		}
	}
	return 0;
}
int main()
{
	int th,i,to,s;
	float c,r;
	scanf("%d",&th);
	scanf("%d %d",&to,&s);
	c=1.0*s/to;
	for(i=0;i<th-1;i++){
		scanf("%d %d",&to,&s);
		r=1.0*s/to;
		if(r>c&&r-c>0.05){
			printf("better\n");
		}else if(r<c&&c-r>0.05){
			printf("worse\n");
		}else{
			printf("same\n");
		}
	}
	return 0;
}
int main(){
	int n,i;
	int a[100],b[100];
	double x,y;
	int r[100]={0};
	scanf("%d",&n);
	for(i=0;i<n;i++){
		scanf("%d%d",&a[i],&b[i]);
	}
	x=1.0*b[0]/a[0];
	for(i=1;i<n;i++){
		y=1.0*b[i]/a[i];
		if(y-x>0.05){
			r[i]=1;
		}
		else if(x-y>0.05){
			r[i]=-1;
		}
		else r[i]=0;
	}
	for(i=1;i<n;i++){
		switch(r[i]){
		case 1:
			printf("better\n");
			break;
		case 0:
			printf("same\n");
			break;
		case -1:
			printf("worse\n");
			break;
		}
	}
	return 0;
}
int main()
{int n,Total,Well;
 float standard,temp;
 char a[3][10]={"better","same","worse"};
 cin>>n;
 cin>>Total>>Well;
 standard=Well/(float)Total;
 for(int i=0;i<n-1;i++)
 {cin>>Total>>Well;
  temp=Well/(float)Total;
  if(temp-standard>0.05)
   cout<<a[0]<<endl;
  else if(temp-standard<-0.05)
   cout<<a[2]<<endl;
  else
   cout<<a[1]<<endl;
 }
 return 0;
}
int main()
{
	double n,i,x,y,a,b;   //????n?? i????  x,y??? a,b??
	cin>>n>>a>>b;         //???????????????
	x=b/a;                //???????????
	for(i=1;i<=n-1;i++)              
	{
		cin>>a>>b;                      //????n-1??????
		y=b/a;                          //???????
		if(x-y>0.05)                    //????????????
			cout<<"worse"<<endl;
		else if(abs(x-y)<=0.05)
			cout<<"same"<<endl;
		else if(y-x>0.05)
			cout<<"better"<<endl;
	}
	return 0;
}
int main()
{
	double i,n,p,q;
	cin>>n;
	for(i=0;i<n;i++)
	{
		double x,y;
		cin>>x>>y;
		if(i==0)
		{
			p=y/x;
			continue;
		}
		q=y/x;
		if(p>=q)
		{
			if(p-q>0.05)
				cout<<"worse"<<endl;
			else
				cout<<"same"<<endl;
		}
		else
		{
			if(q-p>0.05)
				cout<<"better"<<endl;
			else
				cout<<"same"<<endl;
		}
	}
	return 0;
}
int main(int argc, char* argv[])
{
	int n,i,num[N+1],right[N+1];
	float k[N+1];
	scanf("%d",&n);
	for(i=0;i<n;i++)
	{
	    scanf("%d%d",&num[i],&right[i]);
		k[i]=(float)right[i]/num[i]*100;

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


	return 0;
}
int main()
{
	int sz[10000][2];
	double x,y;
	int i,j,row;
	scanf("%d",&row);
	for(i=0;i<row;i++)
		for(j=0;j<2;j++)
			scanf("%d",&sz[i][j]);
	x=(double)sz[0][1]/(double)sz[0][0];
	for(i=1;i<row;i++){
		y=(double)sz[i][1]/(double)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 i,j,n;
    float x,c[N],a[N],b[N],y;

	scanf("%d",&n);
	for(i=0;i<n;i++)
	{
		scanf("%d",&a[i]);
		scanf("%d",&b[i]);
	}
	x=(b[0]/a[0]);
	for(i=0;i<n-1;i++)
	{
		y=(b[i+1]/a[i+1]);

		if((x-y)>0.05)
		{
			printf("worse\n");
		}
		else if((y-x)>0.05)
		{
			printf("better\n");
		}
		else if((y-x)<=0.05&&(x-y)<=0.05)
		{
			printf("same\n");
		}
	}
	return 0;
}
int main()
{
	int n,i,y,j;
	double a[100];
	scanf("%d",&n);
    for(i=0;i<n;i++){
		scanf("%d %d",&y,&j);
		a[i]=1.0*j/y;
	}
	for(i=1;i<n;i++){
		if(a[i]>=a[0]){
			if(a[i]-a[0]>0.05){
				printf("better\n");
			}else{
				printf("same\n");
			}
		}
		if(a[i]<a[0]){
			if(a[0]-a[i]>0.05){
				printf("worse\n");
			}else{
				printf("same\n");
			}
		}
	}
	return 0;
}
int main()
{
	int n,x,y;
	double z;
	int a[1000],b[1000];
	double c[1000];	
	scanf("%d %d %d",&n,&x,&y);
	z=1.0*y/x;
	for(int i=0;i<n-1;i++){
		scanf("%d %d",&a[i],&b[i]);
		c[i]=1.0*b[i]/a[i];
		if(c[i]-z>0.05){
			printf("better\n");
		}else if(z-c[i]>0.05){
			printf("worse\n");
		}else{
			printf("same\n");
		}
	}
	return 0;
}
int main(){
	int n,i,cases[100][3];
	scanf("%d",&n);
	for(i=0;i<n;i++){
		scanf("%d %d",&cases[i][0],&cases[i][1]);
		cases[i][2]=100*cases[i][1]/cases[i][0];
	}
	for(i=1;i<n;i++){
		if(cases[i][2]-cases[0][2]>=5)printf("better\n");
		else if(cases[0][2]-cases[i][2]>=5)printf("worse\n");
		else printf("same\n");
	}
	return 0;
}
int main(){
    int n,bl[10000],yx[10000],i;
    double xl[10000],cha[10000];
    scanf("%d",&n);
    for(i=0;i<n;i++){
        scanf("%d %d",&bl[i],&yx[i]);
    }
    for(i=0;i<n;i++){
        xl[i]=(1.0*yx[i])/bl[i];
    }
    for(i=1;i<n;i++){
        cha[i]=xl[i]-xl[0];
    }
    for(i=1;i<n;i++){
        if(cha[i]>0.05){
            printf("better\n");
        }
        else if(cha[i]<-0.05){
            printf("worse\n");
        }
        else printf("same\n");
    }
    return 0;
}
int main()
{
    float n,i,a0,b0,a,b,x,y,result;
    cin>>n;                                     //???????? 
    cin>>a0>>b0;                                //????????? 
    x=b0/a0;                                    //?????????? 
    for (i=1;i<n;i++)
        {
         cin>>a>>b;                             //???????? 
         y=b/a;                                 //????????? 
         result=y-x;
         if (result>0.05)
            cout<<"better"<<endl;
         else if (result<-0.05)
                 cout<<"worse"<<endl;
         else if ((result>-0.05)&&(result<0.05))
              cout<<"same"<<endl;               //??????? 
        }
    return 0;
}
int main() {
//??
       /*????????????x?????????y???y-x??5%???????
??x-y??5%?????????????????????n????????
???????????????n-1???????????????????
??????????
????
??????n?
??n????????????????????????????????????
?n?????????????????????????????????
????
?n-1??????????????????
?????????better??????????worse?????same */
       //??????
       int n,result[100];
       double ext;
//      int len,result=0;
       //?????????
       int i,j,temp1=0,temp2=0;
       double temp3;

//??
       scanf("%d",&n);
       scanf("%d%d",&temp1,&temp2);
       ext=(double)temp2/(double)temp1;
       for(i=1;i<=n-1;i++) {
               scanf("%d%d",&temp1,&temp2);
               temp3=(double)temp2/(double)temp1;
               if((temp3-ext)>0.05) {
                       result[i]=1;
               }
               else if((ext-temp3)>0.05) {
                       result[i]=2;
               }
               else {
                       result[i]=3;
               }
       }

//???
//      len=strlen(n);

//??
       for(i=1;i<=n-1;i++) {
               if(result[i]==1) {
                       printf("better\n");
               }
               if(result[i]==2) {
                       printf("worse\n");
               }
               if(result[i]==3) {
                       printf("same\n");
               }
       }
//??
       return 0;
}
int main()
{
    int n, a, b, i, k;
    double j;
    scanf("%d%d%d", &n, &a, &b);
    j=(double)(b*1.000/(a*1.000));
    int sz[n-1][2];
    for(i=0;i<=n-2;i++){
        for(k=0;k<=1;k++){
        scanf("%d", &sz[i][k]);
        }
    }
    for(i=0;i<=n-2;i++){
        if((((sz[i][1]*1.000/(sz[i][0]*1.000)))-j)>0.05){
        printf("better\n");
        }
        else if((((sz[i][1]*1.000/(sz[i][0]*1.000)))-j)<-0.05){
             printf("worse\n");
             }
             else{
             printf("same\n");}
    }
    return 0;
}
int main()
{
	float a[1000],b[1000];
	int n,i;
	scanf("%d\n",&n);
	scanf("%f %f\n",&a[0],&b[0]);
	for(i=1;i<n;i++){
		scanf("%f %f\n",&a[i],&b[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;
}
int main()
{
int n;
scanf("%d",&n);
int a[N],b[N],i;
for( i=0;i<n;i++)
{
	scanf("%d%d",&(a[i]),&(b[i]));
}
double c;
c=b[0]*1.0/a[0];

for(i=1;i<n;i++){
if((b[i]*1.0/a[i]-c)*100>5){
	printf("better\n");
}else if((b[i]*1.0/a[i]-c)*100<-5){
	printf("worse\n");
}else{
	printf("same\n");
}
}
	return 0;
}
int main()
{
	int i,n;
	double a,b;
	double x,y;
	double another,effect;
	cin>>n;
	cin>>a>>b;
	effect=b/a;
	for(i=1;i<n;i++)
	{
		cin>>x>>y;
		another=y/x;
		if(another-effect>0.05)
		{
			cout<<"better"<<endl;
		}
		if(effect-another>0.05)
		{
			cout<<"worse"<<endl;
		}
		if(fabs(another-effect)<=0.05)
		{
			cout<<"same"<<endl;
		}
	}
	return 0;
}
int main()
{
	int i=0, j=0, m=0, n=0;
        double t=0,x=0,y=0,a=0,b=0,e=0,d=0;
        scanf("%d", &n);
        scanf("%d%d", &d,&e); 
        x=e/d;
        for(i=0;i<n-1;i++){
             scanf("%d%d", &a,&b);
             y=b/a;
             if(x-y>0.05){
                  printf("worse\n");}
             if(x-y<0.05&&y-x<0.05){
                  printf("same\n");}
             if(y-x>0.05){
                  printf("better\n");}
        }
	return 0;
}
int main() {
int n;
double y[500] = {0}, a, b;
cin >> n;
cin >> a >> b;
y[0] = b / a;
for (int i = 1; i < n; i++) {
cin >> a >> b;
y[i] = b / a;
if (y[i] - y[0] > 0.05) { cout << "better";}
else if (y[0] - y[i] > 0.05) { cout << "worse";}
else { cout << "same";}
cout << endl;
}
return 0;
}
int main () {
int n,i;
double c,d;
scanf("%d",&n);
int a[100];
int b[100];
scanf("%d %d",&a[0],&b[0]);
c=b[0]*1.0000/a[0];
for(i=1;i<n;i++){
   scanf("%d %d",&a[i],&b[i]);
   d=b[i]*1.0000/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;
}
int main()
{
int i,n,x,y,a,c,d,e,b;
scanf("%d",&n);
scanf("%d %d",&a,&b);
c=100*b/a;
for(i=1;i<n;i++){
    scanf("%d %d",&x,&y);
	d=100*y/x;
	e=d-c;
	if(e>=5)
		printf("better\n");
	else if(e<=-5){
		printf("worse\n");
	}
	else{
		printf("same\n");
	}
}

return 0;
}
//********************************
//*??  ?????          *****
//*????? 1300012753     ***** 
//*???2013.09.25          *****   
//********************************
int main()
{
    int i, n, sum, d;   // ??????i???????n??????sum?????d 
    int a, b;            // ??a?b??????????????? 
    float x, y, c;       // ??????????x????y,???????????c 
    cin >> n;
    cin >> a >> b;
    x = 1.0 * b / a;
    for (i = 1; i <= n-1; i++)
    {
        cin >> sum >> d;
        y = 1.0 * d / sum;
        c = y - x;
        if (c >= 0.05)
        {
              printf("better\n");
        }
        else if (c <= -0.05)
        {
              printf("worse\n");
        }
        else
        {
              printf("same\n");
        } 
    }
    return 0;
}
int main()
{
	int n;
	double jsum,juse,a;
	int i,j;
	double xsum[100],xuse[100];
	scanf("%d",&n);
    scanf("%lf %lf",&jsum,&juse);
	a=juse/jsum;
    for(i=0;i<n-1;i++)
	{
		scanf("%lf %lf",&xsum[i],&xuse[i]);
	}
	for(j=0;j<n-1;j++)
	{
		if(((xuse[j]/xsum[j])-a)>0.05)
		{
			printf("better\n");
		}
		else if(((a-xuse[j]/xsum[j]))>0.05)
		{	
			printf("worse\n");
		}
		else 
			printf("same\n");
	}
	return 0;
}
// ?????.cpp : Defines the entry point for the console application.
// ???????n???????????????????????n-1???????????????????????????
int main()
{
	int n;                                             //????n??n???????
	cin>>n;                                            //??n
	double sour1=0,sour2=0;                            //????sour1????????????????????sour2??????????
	double sourper,per[1000];                          //????sourper????????????????per??????????
	double patient[1000],healthy[1000];                //????patient????????????????healthy??????????????
	cin>>sour1>>sour2;
	sourper=sour2/sour1;                               //??sourper
	for(int i=0;i<n-1;i++)                             //??????????????????????????????????
	{
		cin>>patient[i]>>healthy[i];
		per[i]=healthy[i]/patient[i];
	}
	for(int j=0;j<n-1;j++)                             //???????????????????????????????
	{
		if(per[j]-sourper>0.05)                          
			cout<<"better"<<endl;
		else if(sourper-per[j]>0.05)
			cout<<"worse"<<endl;
		else
			cout<<"same"<<endl;
	}
	return 0;
}
/************?????****************
??????????
**************************************/
int main()
{
    int n;
    cin>>n;//n????????
    double all[n], eff[n];//all????effective???? 
    double per[n];//percent ?????
    cin>>all[0]>>eff[0];
    per[0]= eff[0]/all[0];
    for (int i=1;i<n;i++)
    {
        cin>>all[i]>>eff[i];
        per[i]=eff[i]/all[i];
        if (per[i]-per[0]>0.05) 
           cout<<"better"<<endl;
        else 
             if (per[0]-per[i]>0.05)
                cout<<"worse"<<endl;
             else 
                  cout<<"same"<<endl;
    }
    return 0;
}
int main()
{
	int n, x, y, i;
	double p, m;
	scanf("%d",&n);
	for(i=0;i<1;i++)
	{
		scanf("%d%d\n",&x,&y);
		p=100*((double)y)/((double)x);
	}
	for(i=1;i<n;i++)
	{
		scanf("%d%d",&x, &y);
		m=100*((double)y)/((double)x);
		if(p>m+5)
		{
			printf("worse\n");
		}
		else if(p<m-5)
		{
			printf("better\n");
		}
		else{
			printf("same\n");
		}
	}
	return 0;
}
double a,b,c,d;
double limit = 0.05;
int n;
int main()
{
	scanf("%d",&n);
	scanf("%lf%lf",&a,&b);
	double t = b / a;
//	int temp = t * 100;
	//printf("%d\n",temp);
	for(int i = 1;i < n;i ++){
		scanf("%lf%lf",&c,&d);
		double t1 = d / c;
	//	printf("%d\n",t1);
	//	printf("%d\n",abs(t1 - temp));
		if(t1 - t > limit) printf("better\n");
		else if(t - t1 > limit) printf("worse\n");
		else printf("same\n");
	}
	return 0;
}
int main(){
    int n,i,y,z;
	double m;
	int s[1000],x[1000];
	double you[1000];
	scanf("%d",&n);
    scanf("%d%d",&z,&y);
	m=100.0*y/z;
	for(i=0;i<n-1;i++){
		scanf("%d%d",&s[i],&x[i]);
		you[i]=100.0*x[i]/s[i];

		if(you[i]-m>5){
			printf("better\n");
		}else if(m-you[i]>5){
			printf("worse\n");
		}else{
			printf("same\n");
		}
	}
	return 0;
}
int main(){

	int n=0;

	cin>>n;

	double r[100][2];

	for(int i=0;i<n;i++){
		cin>>r[i][0]>>r[i][1];
	}

	for(int i=1;i<n;i++){
		if(r[i][1]/r[i][0]-r[0][1]/r[0][0]>0.05){
			cout<<"better";
		}
		else if(r[0][1]/r[0][0]-r[i][1]/r[i][0]>0.05){
			cout<<"worse";

		}
		else{
			cout<<"same";
		}

		if(i<n-1) cout<<endl;
	}

	return 0;


	
}
int main(int argc, char* argv[])
{
	int n,i,j;
	float a,b;
	int num[100][2];
	scanf("%d",&n);
	for(i=0;i<n;i++){
		for(j=0;j<2;j++){
			scanf("%d",&num[i][j]);
		}
	}
	a=(float)num[0][1]*100/num[0][0];
	
    for(i=1;i<n;i++){
		b=(float)num[i][1]*100/num[i][0];
		if(b-a>5){
			printf("better\n");
			}
		else if(a-b>5){
			printf("worse\n");
		}
		else{
			printf("same\n");
		}
	}
	return 0;
}
void main()
{ int i,j,n;
	int a,b,c,d;
	double e,f;
	scanf("%d",&n);
	scanf("%d%d",&a,&b);
	e=(double)b/a;
	for(i=1;i<n;i++){
	scanf("%d%d",&c,&d);
	f=(double)d/c;	
	if(f-e>0.05) printf("better\n");
	else {
		if(e-f>0.05) printf("worse\n");
		else printf("same\n");}}
    
}
int main()
{
	int i,n,zong,hao;
	double x0,x;

	scanf(" %d",&n);
	scanf(" %d %d",&zong,&hao);
	x0=hao/(zong*1.0);

	for(i=0;i<n-1;i++)
	{
		scanf(" %d %d",&zong,&hao);
		x=hao/(zong*1.0);
		if(x-x0>0.05) printf("better\n");
		else if(x0-x>0.05) printf("worse\n");
		else printf("same\n");
	}
	
	return 0;
}
int main()
{
	int n, total, valid;
	float x, y;
	cin >> n;
	cin >> total >> valid;
	x = (float)valid / total;
	for (int i = 1; i <= n-1; i++)
	{
		cin >> total >> valid;
		y = (float)valid / total;
		if (y - x > 0.05)
		{
			cout << "better" << endl;
		}
		else 
		{ 
			if (y - x < -0.05)
			{
				cout << "worse" << endl;
			}
			else cout << "same" << endl;
		}
	}
	return 0;
}
int main()
{
	int n,i;
	double a,b,c;
	cin>>n;
	cin>>a>>b;
	c=b/a;
	for(i=0;i<n-1;i++)
	{
		cin>>a>>b;
		if(b/a-c>0.05)
			cout<<"better"<<endl;
		if(b/a-c<-0.05)
			cout<<"worse"<<endl;
		if(b/a-c>=-0.05&&b/a-c<=0.05)
			cout<<"same"<<endl;
	}
	return 0;
}
//***************************
//* @author ??          **
//* @date 2012-09-26       ** 
//* @description ?????   **
//***************************
int main()                  //?????
{
	int n, x[100], y[100], c[100], i; //????
	double a, b;                      //????
	//cout<<"???????????"<<endl; //??
	cin >> n;      //????
	cin >> x[1] >> y[1];     //????
	a = (double) y[1] / x[1]; 
	for(i = 2 ; i <= n ; i++)    //????
	{
		cin >> x[i] >> y[i];   //???????
		b = (double) y[i] / x[i];  
		if( b< a-0.05)         //??????
			c[i] = 0;
			
		else if( b >= a-0.05 && b <= a+0.05)   //??????
			c[i] = 1;
			
		else               //??????
			c[i] = 2;
			
	}
	for( i=2 ; i<=n ; i++)        //????
	{
		if(c[i] == 0)          //??????
			cout << "worse" << endl;
		else if(c[i] == 1)        //??????
            cout << "same" << endl;
		else                   //??????
			cout << "better" << endl;
	}
 	return 0;        //?????
}
int main()
{
	int n;
	scanf("%d",&n);

	double a1,b1,c1;
	scanf("%lf %lf",&a1,&b1);
	c1=(b1/a1)*(double)100;

	int i;
	double a2[100],b2[100],c2[100];
	for(i=0;i<n-1;i++)
	{
		scanf("%lf %lf",&a2[i],&b2[i]);
		c2[i]=(b2[i]/a2[i])*(double)100;
		if(c2[i]-c1>5) printf("better\n");
		if(c1-c2[i]>5) printf("worse\n");
		if(c2[i]-c1<=5&&c1-c2[i]<=5) printf("same\n");
	}

    return 0;
}
int main(){
	int n,a,b,i,m;
	double x,z;
	double y[100];
	double sz[100];
	scanf("%d%d%d",&n,&a,&b);
	x=1.0*b/a;
	m=2*n-2;
	for(i=0;i<m;i++)
	{
		scanf("%lf",&(sz[i]));
	}
	for(i=0;i<m;i=i+2)
	{
		y[i]=sz[i+1]/sz[i];
	}
	for(i=0;i<m;i=i+2)
	{
		z=y[i]-x;
		if(z>0.05)
		{
			printf("better\n");
		}
		else if(-z>0.05)
		{
			printf("worse\n");
		}
		else{
			printf("same\n");
		}
	
	}
	return 0;
}
int main()
{
	double total[10000],valid[10000],t1,v1,std,x[10000];
	int n;
	cin>>n;
	cin>>t1>>v1;
	std=v1/t1;
	for(int i=0;i<n-1;i++)
	{
		cin>>total[i]>>valid[i];
		x[i]=valid[i]/total[i];
		if(std-x[i]>0.05)
			cout<<"worse"<<endl;
		if(x[i]-std>0.05)
			cout<<"better"<<endl;
		if((std-x[i]<=0.05&&std-x[i]>=0)||(x[i]-std<=0.05&&x[i]-std>=0))
			cout<<"same"<<endl;
	}
	return 0;
}
int main()
{
int n,i,j[100];
double a[100],b[100],x,y[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]);
    y[i]=b[i]/a[i];
	if(x-y[i]>0.05)
		j[i]=1;
	else if(y[i]-x>0.05)
		j[i]=2;
	else
		j[i]=0;
}
for(i=1;i<n;i++)
{
	if(j[i]==1)
		printf("worse\n");
    if(j[i]==2)
		printf("better\n");
	if(j[i]==0)
		printf("same\n");
}
return 0;
}
int main()
{
int n,i;
float a,b,p;
scanf("%d",&n);
scanf("%f%f",&a,&b);
p=b/a;
for(i=0;i<n-1;i++)
{
scanf("%f%f",&a,&b);
if(b/a-p>0.05) printf("better\n");
if(p-b/a>0.05) printf("worse\n");
if(p-b/a<=0.05&&b/a-p<=0.05) printf("same\n");
}
return 0;
}
int main(){
	int a[N][2],n,i,x,y;
	float b[N][2],z;
	scanf("%d%d%d",&n,&x,&y);
	z=(float)y/(float)x;
//	printf("%f\n",z);
	for(i=0;i<n-1;i++)
	{
		scanf("%d%d",&a[i][0],&a[i][1]);
	}
	for(i=0;i<n-1;i++)
	{
//		printf("%d %d\n",a[i][0],a[i][1]);
		b[i][0]=((float)a[i][1]/(float)a[i][0]);
		b[i][1]=b[i][0]-z;
//		printf("%f\n \n%f\n \n",b[i][0],b[i][1]);
		if(b[i][1]>0.05)
			printf("better\n");
		else if(b[i][1]<-0.05)
			printf("worse\n");
		else
			printf("same\n");
	}
	return 0;
}
int main()
{
    int n,i;
	
	float c,d;
	int a,b;
   
	scanf("%d",&n);
	scanf("%d%d",&a,&b);
	c=(float)b/a;
	scanf("%d%d",&a,&b);
		d=(float)b/a;
		if(d-c>0.05) printf("\nbetter");
		else if (c-d>0.05) printf("\nworse");
		else printf("\nsame");

    for (i=2;i<n;i++){
		scanf("%d%d",&a,&b);
		d=(float)b/a;
		if(d-c>0.05) printf("\nbetter");
		else if (c-d>0.05) printf("\nworse");
		else printf("\nsame");

		}


	return 0;
}
int main()
{
	int n,i;
	double jiwei1,jiwei2,jiweiyx;
	double a[100],b[100],c[100];
	scanf("%d",&n);

    scanf("%lf %lf",&jiwei1,&jiwei2);
	jiweiyx=(jiwei2/jiwei1)*100;

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

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

	return 0;
}
int main()
{
	int i,n;
	double a1,a2,b1[100],b2[100],d[100],c;
	char jieguo[100][7],jieguo1[7]="better",jieguo2[7]="worse",jieguo3[7]="same";
	scanf("%d",&n);
	scanf("%lf%lf",&a1,&a2);
	c=a2/a1;
	for(i=0;i<n-1;i++)
	{
		scanf("%lf%lf",&b1[i],&b2[i]);
		d[i]=b2[i]/b1[i];
		if(d[i]-c>0.05)
		{
			strcpy(jieguo[i],jieguo1);
		}
		else if(c-d[i]>0.05)
		{
			strcpy(jieguo[i],jieguo2);
		}
		else
		{
			strcpy(jieguo[i],jieguo3);
		}
	}
	for(i=0;i<n-2;i++)
	{
		printf("%s\n",jieguo[i]);
	}
	printf("%s",jieguo[n-2]);
	return 0;
}
int main()
{
int n, i, ZS[NUMBER], YX[NUMBER];
double x, y;
scanf("%d",&n);
for(i=0;i<n;i++){
scanf("%d%d",&ZS[i],&YX[i]);}
x=(1.000*YX[0])/ZS[0];
for(i=1;i<n;i++){
y=(1.000*YX[i])/ZS[i];
if(y-x>0.05){
printf("better\n");}
else if(x-y>0.05){
printf("worse\n");}
else{
printf("same\n");}
}
return 0;
}
void main()
{
	int i,n;
	double l[100],a,b,t;
	scanf("%d",&n);
	scanf("%lf%lf",&a,&b);
	l[0]=b/a;
	for(i=1;i<n;i++)
	{
		scanf("%lf%lf",&a,&b);
		l[i]=b/a;
		t=100*(l[i]-l[0]);
		if(t<-5)printf("worse\n");
		else if(t<=5)printf("same\n");
		else if(t>5)printf("better\n");
	}
	scanf("%d",&n);
}