semeru/Code-Code-CloneDetection-POJ104 huggingface dataset:
/*???2011-12-30
 *??????
 *????09.cpp
 *????? - ??(4-9) ?????
 */


int main()
{
	int n = 0;
	double total = 0;
	double valid = 0;
	double cocktail = 0.0;
	cin >> n;
	cin >> total >> valid;
	cocktail = valid / total;
	for (int temp = 1; temp < n; temp++)
	{
		cin >> total >> valid;
		if ( (valid / total) > cocktail + 0.05 )
			cout << "better" << endl;
		else if ( (valid / total) < cocktail - 0.05 )
			cout << "worse" << endl;
		else
			cout << "same" << endl;
	}
	return 0;
}
void main()
{
	int i,n;
	float a[100],b[100],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]=b[i]/a[i];}

   for(i=1;i<n;i++)
	   if ( c[0]+0.05<c[i])printf("better\n");
	   else if( c[i]+0.05<c[0] )printf("worse\n");
	   else printf("same\n");

}
int main()
{
	int n,s1,e1,s2,e2,i,t=0;
	double x1,x2,c1,c2;
	scanf("%d",&n);
	scanf("%d%d",&s1,&e1);
	x1=(double)e1/s1;
	for(i=0;i<n-1;i++){
		t=0;
		scanf("%d%d",&s2,&e2);
		x2=(double)e2/s2;
		c1=x1-x2;
		c2=x2-x1;
		if(c2>0.05){
			printf("better\n");
			t=1;
		}
		if(c1>0.05){
			printf("worse\n");
			t=1;
		}
		if(t==0){
			printf("same\n");
		}
	}
	return 0;
}
int main()
{
	int n,i,j,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]=1.0*b[0]/a[0];
	for(j=1;j<n;j++){
		c[j]=1.0*b[j]/a[j]-c[0];
	    if(c[j]>=0){
			if(c[j]>0.05){
				printf("better\n");
			}else{
				printf("same\n");
			}
		}else if(c[j]<0){
			c[j]=(-1)*c[j];
			if(c[j]>0.05){
				printf("worse\n");
			}else{
				printf("same\n");
			}
		}
	}
	return 0;
}
int main()
{
	int i,n;
	double j[500],a[500][2];
	scanf("%d",&n);
	for(i=0;i<n;i++)
	{
		scanf("%lf %lf",&a[i][0],&a[i][1]);
	}
	j[0]=100*a[0][1]/a[0][0]*1.0;
	for(i=1;i<n;i++)
	{
		j[i]=100*a[i][1]/a[i][0]*1.0;
	}
	for(i=1;i<n;i++)
	{
		if(j[i]-j[0]>5)
		{
			printf("better\n");
		}
		if(j[0]-j[i]>5)
		{
			printf("worse\n");
		}
		if((j[i]-j[0]<=5)&&(j[0]-j[i]<=5))
		{
			printf("same\n");
		}
	}
	return 0;
}
int main()
{
    int i,n;
	int bing[100],you[100];
	double c,d;
	scanf("%d",&n);
	for(i=0;i<n;i++)
	{
		scanf("%d%d",&bing[i],&you[i]);
	}
	c=100.00*(1.000*you[0]/bing[0]);
	for(i=1;i<n;i++)
	{
		d=100.00*(1.000*you[i]/bing[i]);
		if((d-c)>5.00)
			printf("better\n");
		else if((c-d)>5.00)
            printf("worse\n");
		else
			printf("same\n");
	}

	return 0;
}
int main()
{
	int n,i,total[100],youxiao[100];
	scanf("%d",&n);
	for(i=0;i<n;i++)
	{
		scanf("%d %d",&total[i],&youxiao[i]);
	}
	double x=1.0*youxiao[0]/total[0];
	double y[100];
	for(i=1;i<n;i++)
	{
		y[i]=1.0*youxiao[i]/total[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 i,j,m,n,a,b,c,d;
    double x,y;
    int num[10000],ok[10000];
    scanf("%d",&n);
    scanf("%d %d",&a,&b);
    x=1.0*b/a;
    for(i=1;i<n;i++){
                     y=0;
                     scanf("%d %d",&c,&d);
                     y=1.0*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;
	scanf("%d",&n);
	int sz[100][2];
	double xl[100];
	for(i=0;i<n;i++){
		scanf("%d%d",&sz[i][0],&sz[i][1]);
		xl[i]=(double)sz[i][1]/sz[i][0];
	}
	for(i=1;i<n;i++){
		if(xl[i]-xl[0]>0.05){
			printf("better\n");
		}else if(xl[0]-xl[i]>0.05){
			printf("worse\n");
		}else{
			printf("same\n");
		}
	}
	return 0;
}
int main(){
	int n,x,y,i;
	double jiwei,tmp;
	scanf("%d",&n);
	scanf("%d%d",&x,&y);
	jiwei=1.0*y/x;
	for (i=1;i<n;i++)
		{
		scanf("%d%d",&x,&y);
		tmp=1.0*y/x;
		if (tmp-jiwei>0.05)
			printf("better\n");
		else if (jiwei-tmp>0.05)
			printf("worse\n");
			else printf("same\n");
		}
	return 0;
}
int main(){
int i,k,sz[1000],sf[1000],n;
double sc[1000];
scanf("%d",&n);
for(i=0;i<n;i++){
	scanf("%d %d",&(sz[i]),&(sf[i]));
}
for(i=0;i<n;i++){
	sc[i]=sf[i]*1.0/sz[i];
}
for(i=1;i<n;i++){
	if(sc[i]-sc[0]>0.05){
		printf("better\n");
	}
	else if(sc[0]-sc[i]>0.05){
		printf("worse\n");
	}
	else  {printf("same\n");
	}
}
return 0;
}
int main()
{
	int i,x,n,a[100],b[100];
	float y[100];
	scanf("%d",&n);
	for(i=0;i<n;i++)
	{
		scanf("%d",&a[i]);
		scanf("%d",&b[i]);
		y[i]=1.0*b[i]/a[i];
	}
	for(i=1;i<n;i++)
	{
		if(y[i]-y[0]>0.05)
		printf("better\n");
		else if(y[0]-y[i]>0.05)
			printf("worse\n");
		else
			printf("same\n");
	}
	return 0;
}
int main()
{
    int n;
    cin >> n;
    double a,b;
    cin >> a >> b;
    double c;
    c=b/a;
    int i=1;
    while(i<n)
    {
       i++;
       double m,n;
       cin >> m >> n;
       double d=n/m;
       if((c-d)>0.05)
       {
         cout << "worse" << endl;
       }
       else if((d-c)>0.05)
       {
         cout << "better" << endl;
       }
       else
       {
           cout << "same" << endl;
       }
    }
    cin.get();cin.get();cin.get();
    return 0;
}
int main(){
	int n,i;
	double a,b;
	scanf("%d",&n);
	struct lf{
		int x,y;
	}*lfs;
	lfs=(struct lf*)malloc(sizeof(struct lf)*n);
	for (i=0;i<n;i++){
		scanf("%d%d",&(lfs[i].x),&(lfs[i].y));
	}
	a=(1.0*(lfs[0].y))/(lfs[0].x);
	for (i=1;i<n;i++){
		b=(1.0*(lfs[i].y))/(lfs[i].x);
		if (b-a>0.05){
			printf("\nbetter");
		}else if(a-b>0.05){
			printf("\nworse");
		}else{
			printf("\nsame");
		}
	}
	return 0;
}
int main()
{
	int i,n,a[50],b[50];
	float c[50];
	scanf("%d",&n);
	for(i=0;i<n;i++){
		scanf("%d%d",&a[i],&b[i]);
		c[i]=(float)b[i]/a[i];
	}
	for(i=1;i<n;i++){
		if(c[i]-c[0]>0.05)
			printf("better\n");
		if(c[0]-c[i]>0.05)
			printf("worse\n");
		if(c[0]-c[i]<=0.05&&c[i]-c[0]<=0.05)
			printf("same\n");
	}
	return 0;
}
int main()
{
	int n;
	scanf("%d",&n);
	int p, q;
	scanf("%d %d",&p,&q);
	float e = (float)q/p;
	int i = 2;
	while(i<=n)
	{
		int x, y;
		scanf("%d %d",&x,&y);
	    float f = (float)y/x;
		if((f-e<=0.05)&&(f-e>=-0.05))
			printf("same\n");
		else if(f<e)
			printf("worse\n");
		else
			printf("better\n");
		i++;
	}
	return 0;
}
int main()
{int n,i;
	double a,b,c[100];
	scanf("%d",&n);
	for(i=0;i<n;i++){scanf("%lf %lf",&a,&b);c[i]=b/a;}
	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");}}

    
}
int main()
{
	int n,i,a[100],b[100];
	double c,d;
	scanf("%d",&n);
	scanf("%d %d",&a[0],&b[0]);
	c=(double)b[0]/a[0];
	for(i=1;i<n;i++)
	{
        scanf("%d %d",&a[i],&b[i]);
		d=(double)b[i]/a[i];
		if(d>(c+0.05))
		{
			printf("better\n");
		}
		if(d<(c-0.05))
		{
			printf("worse\n");
		}
		if(d<=(c+0.05)&&d>(c-0.05))
		{
			printf("same\n");
		}
	}
	return 0;
}
int main(){
int n;
scanf("%d",&n);
float x,y,a[2],b[2];
scanf("%f%f",&a[0],&a[1]);
x=a[1]/a[0];
int i;
for(i=0;i<n-1;i++){
scanf("%f%f",&b[0],&b[1]);
y=b[1]/b[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;
     scanf("%d",&n);
     int a0,b0;
     scanf("%d %d",&a0,&b0);
     double d=(double)b0/a0;
     for(int i=0;i<n-1;i++)
     {
           int a,b;
           scanf("%d %d",&a,&b);
           double c=(double)b/a;
           if(d>=c)
           {
                if(d-c>0.05) printf("worse\n");
                else printf("same\n");
           }
           else
          {
               if(c-d>0.05) printf("better\n");
               else printf("same\n");
          }
     }
}
int main()
{
	double n=0,i=0,p=0,q=0,x=0,y=0;
	double z=0,w=0;
	cin >> n >> p >> q;
	z=q/p;
	for(i=1;i<n;i=i+1)
	{
		cin >> x >> y;
		w=y/x;
	if (w-z>=0.05)
		cout << "better"<<endl;
	else 
	{
		if(z-w>=0.05)
		cout << "worse" <<endl;
		else 
			cout <<"same" <<endl;
	}
	}
	return 0;
}
int main()
{
int n,i;
float a,b,c,d,x,y,e,f;
scanf("%d",&n);
scanf("%d %d",&a,&b);
x=b/a;
for (i=1;i<n;i++){
scanf("%d %d",&c,&d);
y=d/c;
e=y-x;
f=x-y;
if (e>0.05) printf("better\n");
else if (f>0.05) printf("worse\n");
else if (e<=0.05&&f<=0.05) printf("same\n");
}
return 0;
}
int main()
{
	int i,n;
	cin>>n;
	float a[100],b[100];
	for(i=0;i<=(n-1);i++)
	{
		cin>>a[i]>>b[i];
	}
    for(i=1;i<=(n-1);i++)
	{
		if(fabs((b[i]/a[i])-(b[0]/a[0]))<=5*(1e-2))
		{
			cout<<"same"<<endl;
		}
		else if(((b[i]/a[i])-(b[0]/a[0]))>5*(1e-2))
		{
			cout<<"better"<<endl;
		}
		else
		{
			cout<<"worse"<<endl;
		}
	}
return 0;
}
int main(){
	int n,x[100],y[100],i;
	double z[100],k;
	scanf("%d",&n);
	for(i=0;i<n;i++){
		scanf("%d %d",&x[i],&y[i]);
		z[i]=1.0*y[i]/x[i];
	}
	for(i=1;i<n;i++){
		k=z[i]-z[0];
		if(k>0.05){
			printf("better\n");
		}
		if(k<0.05&&k>-0.05){
			printf("same\n");
		}
		if(k<-0.05){
			printf("worse\n");
		}
	}
	return 0;
}
void main()
{
	int n=0;
	int i=0;
	float zs_1=0,yx_1=0;
	float zs=0,yx=0;
	scanf("%d",&n);
	scanf("%f%f",&zs_1,&yx_1);
	for(i=1;i<n;i++)
	{
		scanf("%f%f",&zs,&yx);
		if((yx_1/zs_1-yx/zs)>0.05)
			printf("worse\n");
		else if((yx/zs-yx_1/zs_1)<0.05)
			printf("same\n");
		else
			printf("better\n");
		yx=0;
		zs=0;
	}
}
int main()
{
	int n,i=0;
	double x,y,a=0,b=0;
	cin>>n;
	for(i=1;i<=1;i++)//??????
	{
		cin>>x>>y;
		a=y/x;//??????????
	}
	for(i=2;i<=n;i++)//??????
	{
		cin>>x>>y;
		b=y/x;
		if(b-a>0.05)//??????????
			cout<<"better"<<endl;
		else if (a-b>0.05)//??????????
			cout<<"worse"<<endl;
		else cout<<"same"<<endl;//????
	}
		return 0;
}
int main(){
	int sz[1000][2];
	int i,j;
	int n;
	scanf("%d",&n);
	for(i=0;i<n;i++){
		for(j=0;j<2;j++){
			scanf("%d",&sz[i][j]);
		}
	}
	double yx[1000];
	for(i=0;i<n;i++){
		yx[i]=0;
	}
	for(i=0;i<n;i++){
		yx[i]=(double)sz[i][1]/sz[i][0];
	}
	double bj[1000];
	for(i=0;i<n;i++){
		bj[i]=0;
	}
	for(i=1;i<n;i++){
		bj[i]=yx[i]-yx[0];
	}
	for(i=1;i<n;i++){
		if(bj[i]>0.05){
			printf("better\n");
		}
	    if(bj[i]<-0.05){
			printf("worse\n");
		}
		if((bj[i]>=-0.05)&&(bj[i]<=0.05)){
			printf("same\n");
		}
	}
	return 0;
}
int main(){
	int n;
	scanf("%d",&n);
    float sz[100][3];
	for(int a=0;a<n;a++){
		for(int j=0;j<2;j++){
			scanf("%f",&sz[a][j]);
		}
	}
	for(int i=1;i<n;i++){
			if(sz[i][1]/sz[i][0]-sz[0][1]/sz[0][0]>0.05)
				printf("better\n");
			if(sz[i][1]/sz[i][0]-sz[0][1]/sz[0][0]<-0.05)
				printf("worse\n");
			if(sz[i][1]/sz[i][0]-sz[0][1]/sz[0][0]>=-0.05&&sz[i][1]/sz[i][0]-sz[0][1]/sz[0][0]<=0.05)
				printf("same\n");
	}
	return 0;
}
int main()
{
    int n;
    scanf("%d",&n);
    int sz[n][2];
    double p[n];
    int i,j;
    for(i=0;i<n;i++){
        scanf("%d %d\n",&sz[i][0],&sz[i][1]);
        p[i]=(double)sz[i][1]/sz[i][0];
    }
    for(i=1;i<n;i++){
       if(p[i]-p[0]>0.05){
          printf("better\n");
       }
       else if(p[0]-p[i]>0.05){
          printf("worse\n");
       }
       else{
          printf("same\n");
       }
    }
    return 0;
}
int main()
{
	double a[10000],b[10000];
	int i,n;
	cin>>n;
	cin>>a[0]>>b[0];
	for(i=1;i<n;i++)
	{
		cin>>a[i]>>b[i];
		if(100*(b[i]/a[i]-b[0]/a[0])>5)cout<<"better"<<'\n';
		else if(100*(b[0]/a[0]-b[i]/a[i])>5)cout<<"worse"<<'\n';
		else cout<<"same"<<'\n';
	}
	cout<<endl;
	return 0;
}
int main(){
	int n,lc,yx,i;
	float x,y;
	scanf("%d",&n);
	scanf("%d%d",&lc,&yx);
		x=1.0*yx/lc;
	for(i=0;i<n-1;i++)
	{
		lc=0;
		yx=0;
		y=0;
		scanf("%d%d",&lc,&yx);
		y=1.0*yx/lc;
		if((y-x)>0.05){
			printf("better\n");}
		else if((x-y)>0.05){
			printf("worse\n");}
		else if((y-x)<=0.05&&(x-y)<=0.05){
			printf("same\n");}
		
	}
	return 0;
}
float ample[N][2], effect[N];
int main()
{
	int n;
	cin>>n;
	float ample0=0, ample1=0, effect0=0;
	cin>>ample0>>ample1;
	effect0=ample1/ample0;
	for(int i=0; i<n-1; i++)
	{
		cin>>ample[i][0]>>ample[i][1];
		effect[i]=ample[i][1]/ample[i][0];
		if(effect0-effect[i]>0.05) cout<<"worse"<<endl;
		else if(effect[i]-effect0>0.05) cout<<"better"<<endl;
		else cout<<"same"<<endl; 
	}
	return 0;
}
int main()
{
	int n,zong[N],xiao[N],k;
	double x,y[N];
	scanf("%d",&n);
	for(k=0;k<n;k++){
		scanf("%d %d",&zong[k],&xiao[k]);
	}
	x=1.0*xiao[0]/zong[0];
	for(k=1;k<n;k++){
		y[k]=1.0*xiao[k]/zong[k];
		if(y[k]-x>0.05){
			printf("better\n");
		}else if(x-y[k]>0.05){
			printf("worse\n");
		}else{
			printf("same\n");
		}
	}
	return 0;
}
int main()
{
	int n,i,j;
	int sz[1000][2];
	double s[1000];
	scanf("%d",&n);
	for(i=0;i<n;i++){
		for(j=0;j<2;j++){
			scanf("%d",&sz[i][j]);
            s[i]=(double)sz[i][1]/sz[i][0];
		}
	}
	for(i=1;i<n;i++){
		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;
	cin>>n;
	double a[n],b[n];
	for(int i=0;i<n;i++)
	{
		cin>>a[i]>>b[i];
	}
	for(int j=0;j<n;j++)
	{
		a[j]=b[j]/a[j];
	}
	for(int k=1;k<n;k++)
	{
		if((a[k]-a[0])>0.05)
			cout<<"better"<<endl;
		if((a[k]-a[0])<-0.05)
			cout<<"worse"<<endl;
		if(abs(a[k]-a[0])<=0.05)
			cout<<"same"<<endl;
	}
	return 0;
}
int main()
{
	int t,i;
	double m,n,sz1[100]={0},sz2[100]={0};
	double x,y;
	scanf("%d",&t);
	scanf("%lf %lf",&m,&n);
	x=1.0*n/m;
	
	for(i=1;i<t;i++)
	{
		scanf("%lf %lf",&sz1[i],&sz2[i]);
	}
	for(i=1;i<t;i++)
	{
		y=1.0*sz2[i]/sz1[i];
		if(y-x>0.05)
		{
			printf("better\n",y ,x);
		}
		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,i;
	double a,b;
	double sz[100];
	scanf("%d",&n);
	for(i=0;i<n;i++)
	{
		scanf("%lf",&a);
		scanf("%lf",&b);
		sz[i]=b/a;
	}
	for(i=1;i<n;i++)
	{
		if((sz[i]-sz[0])>0.05)
		{
			printf("better\n");
		}
		else if((sz[0]-sz[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);
	for(i=0;i<n;i++)
	{
		scanf("%d%d",&a[i],&b[i]);	
	}
	for(i=0;i<n;i++)
	{
		c[i]=(float)b[i]/a[i];
	    //printf("%.2f\n",c[i]);
	}
	for(i=1;i<n;i++)
	{
		if(c[i]>c[0])
		{
			if(c[i]-c[0]>0.05)
				printf("better\n");
			else
				printf("same\n");
		}
		else
		{
			if(c[0]-c[i]>0.05)
				printf("worse\n");
			else 
				printf("same\n");
		}
	}
	return 0;
}
int main()
{
	int n,i;
	int a[100],b[100];
	double x;
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++)
{
	if(x>1.0*b[i]/a[i]&&(x-1.0*b[i]/a[i]>0.05))
	{
		printf("worse\n");
	}
	else if(x<1.0*b[i]/a[i]&&(1.0*b[i]/a[i]-x>0.05))
	{
		printf("better\n");
	}
	else
	{
		printf("same\n");
	}
}
return 0;
}
int main()
{
	int n,i;
	struct jiegou
	{
		int a;
		int b;
		float x;

	}
	sz[100];
	scanf("%d",&n);
	for(i=0;i<n;i++)
	{
		scanf("%d %d",&sz[i].a,&sz[i].b);
		sz[i].x=(float)1.0*sz[i].b/sz[i].a*100.0;
	}
	for(i=1;i<n;i++)
	{
		if(sz[i].x-sz[0].x>5)
			printf("better\n");
		else if(sz[0].x-sz[i].x>5)
			printf("worse\n");
		else
			printf("same\n");
	}
	return 0;
}
main()
{
  int n;
  scanf("%d",&n);
  int i;
  double m0,m,x,a[n+1],b[n+1],t0,t;
  for(i=0;i<n;i++)
    scanf("%lf %lf",&a[i],&b[i]);
  t0 = a[0] - b[0];
  m0 = t0 / a[0];
  for(i=1;i<n;i++)
  {
    t = a[i] - b[i];
    m = t/a[i];
    if(m >= m0)
    {
      x = m - m0;
      if(x > 0.05)
        printf("worse\n");
      else
        printf("same\n");
    }
    else
    {
      x = m0 - m;
      if(x >0.05)  
         printf("better\n");
      else
        printf("same\n");
     }
  }
}
/*
 * file    practice 1_6
 * author  ??
 * date    2010-11-12
 * description
           ????????????
*/



int main()
{
	int n, x, y, i;
	float a0, a;
	cin >> n;
	cin >> y >> x;
	a0 = x / 1.0 / y;
	for (i = 1; i <= n - 1; i ++)
	{
		cin >> y >> x;
		a = x / 1.0 / y;
		if (a - a0 > 0.05)
			cout << "better" << endl;
		else 
			if (a - a0 < -0.05)
				cout << "worse" <<endl;
			else 
				cout << "same" << endl;
	}
	return 0;
}
int main()
{
	double*y;
	int M,m,i,n;

	scanf("%d",&n);
	y=(double*)malloc(sizeof(double)*n);
	double x;
	scanf("%d%d",&M,&m);
		
	x=(double)m/M;
		
	for(i=0;i<n-1;i++)
	{
		scanf("%d%d",&M,&m);
		
			y[i]=(double)m/M;
	}
	for(i=0;i<n-1;i++)
	{
			if(x-y[i]>0.05)
			{
				printf("worse\n");
			}
			
			else 
			{
				if(y[i]-x>0.05)
				{
				printf("better\n");
				}
			
			    else
				{
				printf("same\n");
				
				}
			}
	}

	free(y);
	
	return 0;
}
int main()
{
    int n,i;                            //???n???i
    cin>>n; 
    float s_all,s_good;                 //strandard
    cin>>s_all>>s_good;                 //??? 
    float all,good;                     //????????? 
    for (i=1;i<=n-1;i++)
    {
        cin>>all>>good;
        if (s_good/s_all-good/all>0.05) //????~ 
           cout<<"worse"<<endl;
        else if (good/all-s_good/s_all>0.05)
           cout<<"better"<<'\n';
        else
           cout<<"same"<<'\n';
    }
    return 0;                           //?? (>w<) 
}
int main()
{
	int n,i;
	double sz1[100],sz2[100],k[100],j;
	scanf("%d",&n);
	for(i=0;i<n;i++){
		scanf("%lf%lf",&sz1[i],&sz2[i]);
		k[i]=(sz2[i])/(sz1[i]);
	}
	j=k[0];
	for(i=1;i<n;i++){
		
		if(k[i]-j-0.05>0){
			printf("better\n");
		}
		if(j-k[i]-0.05>0){
			printf("worse\n");
		}
		if((j-k[i]-0.05<=0)&&(k[i]-j-0.05<=0)){
			printf("same\n");
		}
		
	}
	return 0;
}
int main()
{
	double sz[100],a[100],b[100];
	int i,n;
	scanf("%d\n",&n);
	for(i=0;i<n;i++){
		scanf("%lf %lf\n",&sz[i],&b[i]);
		a[i]=b[i]/sz[i]*100;
	}
	for(i=1;i<n;i++){

		if(a[i]-a[0]<-5){
			printf("worse\n");
		}
		if(a[i]-a[0]>5){
			printf("better\n");
		}
		if(a[i]-a[0]>-5&&a[i]-a[0]<5){
			printf("same\n");
		}
	}
	return 0;



}
main()
{
      int n;
      scanf("%d",&n);
      float p0,q0;
      scanf("%d %d",&p0,&q0);
      for(int i=1;i<=n-1;i++)
      {
            float p,q;
            scanf("%d %d",&p,&q);
            if((q/p-q0/p0)<=0.05&&(q0/p0-q/p)<=0.05)
                 printf("same\n");
            else if((q/p-q0/p0)>0.05)
                 printf("better\n");
            else if((q0/p0-q/p)>0.05)
                 printf("worse\n");
      }
}
int main(){
	int n,i,a[100],b[100];
	double x,y;
	scanf("%d",&n);
	for(i=0;i<n;i++){
		scanf("%d%d",&(a[i]),&(b[i]));
	}
	for(i=0;i<n;i++){
		if(i==0){
		x=1.0*b[i]/a[i];
		}
		if(i>0){
			y=1.0*b[i]/a[i];
			if(y-x>0.05){
				printf("better\n");
			}
			if(x-y>0.05){
                printf("worse\n");
			}
			else if(x-y>=-0.05&&x-y<=0.05){
                 printf("same\n");
			}
		}
	}
	return 0;
}
int main()
	{
	int n,i;
	float m,c,d;
	float a[100]={0},b[100]={0},h[100]={0};
	cin>>n;
	cin>>c>>d;
	for (i=2;i<=n;i++)
		{
		cin>>a[i]>>b[i];
		h[i]=b[i]/a[i];
		}
    m=d/c;
	for (i=2;i<=n;i++)
		{
		if (h[i]-m>0.05)
			cout<<"better"<<endl;
		else if (m-h[i]>0.05)
			cout<<"worse"<<endl;
		else 
			cout<<"same"<<endl;
		}
	return 0;
	}
int main(){
	int n,i,j,a,b;
	int sz[100][2];
	double c,d;
	scanf("%d",&n);
	scanf("%d %d",&a,&b);
	c=1.0*b/a;
	for(i=1;i<n;i++){
		for(j=0;j<2;j++){
			scanf("%d",&sz[i][j]);
		}
	}
	for(i=1;i<n;i++){
			d=1.0*sz[i][1]/sz[i][0];
			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 n;
	cin >> n;
	int testnum, successnum;
	float x = 0, y = 0;

	for (int i = 1; i <= n; i++)
	{
		cin >> testnum >> successnum;
		if (i == 1)
		{
			x = 100.0 * successnum / testnum;
		}
		if (i >= 2)
		{
			y = 100.0 * successnum / testnum;
			if ((int)(y - x) >= 5)
			{
				cout << "better" << endl;
			}
			else if ((int)(x - y) >= 5)
			{
				cout << "worse" << endl;
			}
			else
			{
				cout << "same" << endl;
			}
		}
		y = 0;
	}

	return 0;
}
int main()
{
	int n,i;
	double x,y;
	scanf("%d",&n);
	int **sz=(int**)malloc(sizeof(int*)*n);
	for(i=0;i<n;i++)
	{
		sz[i]=(int*)malloc(sizeof(int)*2);
		scanf("%d %d",&sz[i][0],&sz[i][1]);
	}
	x=1.0*sz[0][1]/sz[0][0];
	for(i=1;i<n;i++)
	{
		y=1.0*sz[i][1]/sz[i][0];
		if(y-x>0.05)
		{
			printf("better\n");
		}
		else if(x-y>0.05)
		{
			printf("worse\n");
		}
		else
		{
			printf("same\n");
		}
	}
	return 0;
}
int main()
{
	int n, a, b, m, p, k= 0;
	double x, y;
	cin >> n;
	cin >> m >> p;
	x = (double)p / m;
	for(k = 1; k < n; k++)
	{
		cin >> a >> b;
	    y = (double)b / a;
		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 i, n;
	cin >> n;
	int x[n], y[n];
	for (i = 0; i < n; i++)//??????
		cin >> x[i] >> y[i];
	for (i = 1; i < n; i++) {//???????
		if ((y[0] * x[i] - y[i] * x[0]) > 0.05 * x[i] * x[0])
			cout << "worse" << endl;
		else if ((y[i] * x[0] - y[0] * x[i]) > 0.05 * x[i] * x[0])
			cout << "better" << endl;
		else
			cout << "same" << endl;
	}
	return 0;
}
int main()
{
    int m,w;
    double v[2];
    double p[2];
    double v0,p0,c;
    scanf("%d",&m);
    scanf("%lf %lf",v,v+1);
    v0=v[1]/v[0];
    m--;
    for(w=0;w<m;w++)
    {
        scanf("%lf %lf",p,p+1);
        p0=p[1]/p[0];
        c=p0-v0;
        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;
	scanf("%d",&n);

int i,j;
double c[10000][2];
for(i=0;i<n;i++){
	for(j=0;j<2;j++){
scanf("%lf",&c[i][j]);
}}
double a[10000];
for(i=0;i<n;i++){
a[i]=c[i][1]/c[i][0];
}
for(i=1;i<n;i++){
	if(a[i]-a[0]>0.05){

printf("better\n");
}
 if(a[0]-a[i]>0.05){

printf("worse\n");
}
    if((0.05>(a[0]-a[i]))&&(0.05>(a[i]-a[0]))){

printf("same\n");
}
}

return 0;}
void main()
{
	int cases;
	double x,y,rate;
	scanf("%d",&cases);
	cases--;
	scanf("%lf %lf",&x,&y);
	rate=y/x;
	while(cases--){
		scanf("%lf %lf",&x,&y);
		if(y/x-rate>0.05)printf("better\n");
		else if(rate-y/x>0.05)printf("worse\n");
		else printf("same\n");
	}
}
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]=(double)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()
{
 int n,i,j,pd(int x);
 scanf ("%d",&n);
 for (i=6;i<=n;i+=2)
  {
   for (j=3;j<=0.5*i;j=j+2)
   {
    if (pd(j) && pd(i-j)) 
    {
     printf("%d=%d+%d\n",i,j,i-j);
     break;
    }
     
   }
  }
}
int pd(int x)
{
 int i;
 float y;y=x;
 for (i=3;i<=(int)sqrt(y);i+=2)
  {
   if (x%i==0) return 0;
  }
 return 1;
}
int veget(int m)
{
	int a,i;
	a=1;
	for(i=2;i<=(int)sqrt(m);i++)
	{
		if(m%i==0) 
		{
			a=0;
			break;
		}
	}
	return(a);
}
main()
{
  int i,j,n;
  scanf("%d",&n);
  for(i=6;i<=n;i=i+2)
  {
	  for(j=3;j<=i/2;j++)
	  {
		  if(veget(j)==1&&veget(i-j)==1) break;
	  }
	  printf("%d=%d+%d\n",i,j,i-j);
  }
  
}
void main()
{
 int x,k,n,i=3,j,a;

 scanf("%d",&a);
 for(x=6;x<=a;x+=2)
 {
     k=3;
     do
  {
	  //9i=3;
      for(n=k;;n+=2)
   {
       for(i=3;i<=sqrt(n);i+=2)
    {
        if(n%i==0)
         break;
    }
	   if(i>sqrt(n))
		   break;
	  }
      for(j=3;j<=sqrt(x-n);j+=2)
   {
       if((x-n)%j==0)
        break;
   }
      k=n+2;
  }while(j<=sqrt(x-n));
  printf("%d=%d+%d\n",x,n,x-n);
 }
}
int a[100000]={0};
int f(int y)
{
	int t,i;
	t=sqrt(y);
    for(i=2;i<=t;i++)
	{
			if(y%i==0)
				break;
	}
	if(i>t)
	    return 1;
	else
		return 0;
}
int main(int argc, char* argv[])
{
	int n,z;
	scanf("%d",&n);
	int i,j,k,x=0;
	for(j=2;j<=n;j++)
	{
		k=sqrt(j);
		for(z=2;z<=k;z++)
		{
			if(j%z==0)
				break;
		}
		if(z>k)
		{
			a[x]=j;
			x++;
		}
	}
	for(i=6;i<=n;i+=2)
	{
		for(j=0;j<=x;j++)
		{
			if(f(i-a[j]))
			{
				printf("%d=%d+%d\n",i,a[j],i-a[j]);
				break;
			}
		}
		continue;

	}
	return 0;
}
int sushu(int a)
{
	int i;
	double b;
	b=sqrt(a);
	if (a%2==0)
		return 0;
	else
	{
		for (i=3;i<=b;i=i+2)
		{
			if (a%i==0)
				return 0;
		}
		return 1;
	}
}
int main()
{
	int n;
	scanf("%d",&n);
	int i,j;
	int a;
	for (i=6;i<=n;i=i+2)
	{
		for (j=3;j<=i;j++)
		{
			if (sushu(j))
			{
			a=i-j;
			if (sushu(a))
			{
				printf("%d=%d+%d\n",i,j,a);
				break;
			}
			}
		}
	}
	return 0;
}
void main()
{
	long n,a=6,b=3,i,j,k,l,c,d;
	scanf("%ld",&n);
	while(a<=n)
	{
		i=3;printf("%ld=",a);
		while(i<=a/2)
		{j=3;d=3;k=0;l=0;
			while(j<=sqrt(i))
			{if((i%j)==0)k++;j=j+2;
			}if(k==0)
			{c=a-i;
			while(d<=sqrt(c))
			{if((c%d)==0)l++;d=d+2;
			}if(l==0){printf("%ld+%ld\n",i,c);break;}
			}
			i=i+2;
		}
		a=a+2;
	}
}