semeru/Code-Code-CloneDetection-POJ104 huggingface dataset:
int main()
{
	int i;
	double j,k,l,n,a[1000],b[1000];
	scanf("%lf",&n);
	for(i=0;i<=n-1;i++)
	{
		scanf("%lf %lf",&j,&k);
		b[i]=k/j;
	}
	for(i=1;i<=n-1;i++)
	{
		if(b[i]-b[0]>0.05)
			printf("better\n");
		if(b[i]-b[0]<-0.05)
			printf("worse\n");
		if(b[i]-b[0]<=0.05&&b[i]-b[0]>=-0.05)
			printf("same\n");
	}
	return 0;
}
int main()
{   int n;
    cin>>n;

    float a,b;
    float c[n];
    int i=0,j=1;
    for (i=0;i<n;i++)

        {
            cin>>a>>b;

            c[i]=b/a;
        }
         for (j=1;j<n;j++)
         {
             if((c[j]-c[0])>0.05)
                cout<<"better"<<endl;
             else if((c[0]-c[j])>0.05)
                cout<<"worse"<<endl;
             else
                cout<<"same"<<endl;


         }


    return 0;
}
int main()
{
	int n,zong[100],yx[100],i;
	scanf("%d\n",&n);
	for(i=0;i<n;i++){
		scanf("%d %d\n",&zong[i],&yx[i]);
	}
	for(i=1;i<n;i++){
		if((double)yx[0]/zong[0]-(double)yx[i]/zong[i]>=0.05){
			printf("worse\n");
		}
		else if((double)yx[i]/zong[i]-(double)yx[0]/zong[0]<=0.05){
			printf("same\n");
		}
		else {
			printf("better\n");
		}
	}
	return 0;
}
int main(){
	int n,a,b,i,m,k;
	double x,y;
	scanf("%d %d %d",&n,&a,&b);
	x=1.0*b/a;
	for(i=0;i<n-1;i++){
		scanf("%d %d",&m,&k);
		y=1.0*k/m;
		if(x-y>0.05){
			printf("worse");
			printf("\n");
		}else if(y-x>0.05){
			printf("better");
			printf("\n");
		}else {
			printf("same");
			printf("\n");
		}
	}
		return 0;
	}
int main()
{
	int n,e,a;
	double p,x;
	scanf("%d",&n);
	scanf("%d %d",&a,&e);
	p=1.0*e/a;
	for(int i=1;i<=n-1;i++)
	{
	scanf("%d %d",&a,&e);
	x=1.0*e/a;
	if((x-p)*(x-p)<=0.0025)printf("same\n");
	if((x-p)>0.05)printf("better\n");
	if((x-p)<-0.05)printf("worse\n");
	}
	return 0;
}
/*
 * ?????????
 *  ????: 2010-12-19
 *    ??????
 */
int main(){
	int n;
	cin>>n;
	float a[100][2];
	for(int i=0;i<n;i++)
		for(int j=0;j<2;j++)
			cin>>a[i][j];//????
	float b[100];
	for(int i=0;i<n;i++)
		b[i]=a[i][1]/a[i][0];
	for(int i=1;i<n;i++){
		if(b[i]>b[0]){//???
			if((b[i]-b[0])>0.05)
				cout<<"better"<<endl;
			else cout<<"same"<<endl;//????
		}
		else{
			if((b[0]-b[i])>0.05)
				cout<<"worse"<<endl;
				else cout<<"same"<<endl;
		}
	}
	return 0;
}
int main()
{
    int n;
    double x,y,wine[2],improve[2];
    cin>>n;
    for(int i=0;i<2;i++)
    cin>>wine[i];
    x=wine[1]/wine[0];//??????????? 
    for(int i=1;i<n;i++)
    {
      cin>>improve[0]>>improve[1];
      y=improve[1]/improve[0];//?????????? 
      if(x-y>0.05)//?????? 
      cout<<"worse"<<endl;
      else if(y-x>0.05)
      cout<<"better"<<endl;
      else
      cout<<"same"<<endl;
    }
    return 0;
}
int main (){
	int n,i;
	int zs,yx;
	double a;
	scanf("%d",&n);
	for(i=0;i<n;i++){
		if(i==0){
			scanf("%d %d",&zs,&yx);
			a=1.0*yx/zs;
		}else {
			scanf("%d %d",&zs,&yx);
			if(1.0*yx/zs-a>0.05){
				printf("better\n");
			}else if(1.0*yx/zs-a<-0.05){
				printf("worse\n");
			}else {
				printf("same\n");
			}
		}
	}
		
	return 0;
}
int main()
{
	int n;
	cin>>n;
	float sum,effective;
	float percentji,percent;
	cin>>sum>>effective;
	percentji=effective/sum;
	while(--n){
		cin>>sum>>effective;
		percent=effective/sum;
		if(percentji-percent>0.05)cout<<"worse"<<endl;
		else if(percent-percentji>0.05)cout<<"better"<<endl;
		else cout<<"same"<<endl;
	}
	return 0;
}
int main(){
	int n;
	scanf("%d",&n);
	int sz[100][2];
	for(int i=0;i<n;i++){
		scanf("%d%d",&sz[i][0],&sz[i][1]);
	}
	double c=1.0*sz[0][1]/sz[0][0];
	for(int k=1;k<n;k++){
		if(1.0*sz[k][1]/sz[k][0]-c>0.05){
			printf("better\n");
		}
		else if(c-(1.0*(sz[k][1])/(sz[k][0]))>0.05){
			printf("worse\n");
		}
		else{
			printf("same\n");
		}
	}
	return 0;
}
int main()
{
	int n,i;
	float per,per1,a1,b1,a,b;
	scanf("%d",&n);
	scanf("%f%f",&a1,&b1);
	per1=b1/a1;
	for(i=1;i<n;i++)
	{
		scanf("%f%f",&a,&b);
		per=b/a;
		if(per-per1>0.05)
		{
			printf("better\n");
		}
		else if(per1-per>0.05)
		{
			printf("worse\n");
		}
		else
		{
			printf("same\n");
		}
	}
	return 0;
}
int main()//???
{
	int n=0;//????????????????
	int sum=0,num=0;//???????????????????????????
	double x=0,y=0;//??????????????????????????????????
	cin>>n;//????????
	cin>>sum;
	cin>>num;
	x=(double)num/sum;//????????????
	for(int i=0;i<n-1;i++)//?????????????????????????????
	{
		cin>>sum;
		cin>>num;
		y=(double)num/sum;
		if((y-x)>0.05)
			cout<<"better"<<endl;
		else if((x-y)>0.05)
			cout<<"worse"<<endl;
		else
			cout<<"same"<<endl;
	}
	return 0;
}//?????
int main()
{
	int n,i,jiu1,jiu2,xin1[100],xin2[100],xiao[100];;
	scanf("%d",&n);
	scanf("%d %d",&jiu1,&jiu2);
	xiao[0]=100*jiu2/jiu1;
	for(i=1;i<n;i++)
	{
		scanf("%d %d",&xin1[i],&xin2[i]);
		xiao[i]=100*xin2[i]/xin1[i];
		if(xiao[i]-xiao[0]>=5)
			printf("better\n");
		else if(xiao[0]-xiao[i]>=5)
			printf("worse\n");
		else
			printf("same\n");
	}
	return 0;
}
void main()
{
	int i,n;
	float std;
	float improve;
	int total,ok;
	scanf("%d",&n);
	scanf("%d%d",&total,&ok);
	std=(float)ok/(float)total;
	for(i=0;i<n-1;i++)
	{
		scanf("%d%d",&total,&ok);
		improve=(float)ok/(float)total;
		if(improve-std>0.05) printf("better\n");
		else if(std-improve>0.05) printf("worse\n");
		else printf("same\n");
	}
}
int main()
{
	int n,i,a,b,t,s;
	float x,y;
	cin>>n;
	cin>>a>>b;
	x=b*1.0/a;
	for (i=1;i<=n-1;i++)
	{cin>>t>>s;
	  y= s*1.0/t;
	  if (y-x>0.05) cout<<"better"<<endl;
	  if (x-y>0.05) cout<<"worse"<<endl;
	  if(x-y<=0.05&&y-x<=0.05) cout<<"same"<<endl;
	}
	return 0;
}
int main()
{
	int n,i,a,b;
	double x,y;
	scanf("%d%",&n);
    scanf("%d%d",&a,&b);
	x=(double)b/a;
	for (i=0;i<n-1;i++)
	{
		scanf("%d%d",&a,&b);
		y=(double)b/a;
		if (y-x>0.05) printf("better\n");
		else if (x-y>0.05) printf("worse\n");
		     else printf("same\n");
	}
    return 0;
}
int main()
{
	int n,i;
	double std,a,b,x,y;
	double sz[100];
	scanf("%d",&n);
	scanf("%lf%lf",&a,&b);
	std=b/a;
	for(i=1;i<n;i++)
	{
		scanf("%lf%lf",&x,&y);
		if(((y/x)-std)>0.05)
		{
			sz[i]=1;
		}
		else if((std-(y/x))>0.05)
		{
			sz[i]=0;
		}
		else
		{
			sz[i]=2;
		}
	}
	for(i=1;i<n;i++)
	{
		if(sz[i]==1)
		{
			printf("better\n");
		}
		else if(sz[i]==0)
		{
			printf("worse\n");
		}
		else if(sz[i]==2)
		{
			printf("same\n");
		}
	}
	return 0;
}
int main()
{ //cout<<setiosflags(ios::fixed)<<setprecision(4);
  int n,i;
  float a,b,cx,cd,c,c0;
  cin>>n;
  cin>>a>>b;
  c0=b/a;
  cx=c0-0.05;
  cd=c0+0.05;
  for (i=1;i<=n-1;i++) 
    { cin>>a>>b;
      c=b/a;
      if (c>cd-1e-9) cout<<"better"<<endl;
      if (c<cx+1e-9) cout<<"worse"<<endl;
      if ((c<cd-1e-9)&&(c>cx+1e-9)) cout<<"same"<<endl; }
   return 0;
}
int main(){
	int n;
	scanf("%d",&n);
	double jiwei[2];
	scanf("%lf%lf",&jiwei[0],&jiwei[1]);
	double b;
	b=jiwei[1]/jiwei[0]*100;
	double qita[100][2];
	for(int i=0;i<n-1;i++){
        scanf("%lf",&qita[i][0]);
	    scanf("%lf",&qita[i][1]);
	}
	double a;
	 a=qita[0][1]/qita[0][0]*100;
        if(a-b>5){
			printf("better");
		}
		else if(b-a>5){
			printf("worse");
		}
		else{
			printf("same");
		}
	for(int j=1;j<n-1;j++){
        a=qita[j][1]/qita[j][0]*100;
		if(a-b>5){
			printf("\nbetter");
		}
		else if(b-a>5){
			printf("\nworse");
		}
		else{
			printf("\nsame");
		}
	}
	return 0;
}
void main()
{
  int n,i,a[100][2];
  double s,m;
  scanf("%d",&n);
  for(i=0;i<n;i++)
  scanf("%d %d",&a[i][0],&a[i][1]);
  s=1.0*a[0][1]/a[0][0];
  for(i=1;i<n;i++)
    {
    m=1.0*a[i][1]/a[i][0];
    if((m-s)>0.05)
    printf("better\n");
    else if((s-m)>0.05)
    printf("worse\n");
    else 
    printf("same\n");
    }
}
int main()
{
	int n, x, y[100], total[100][100], effect[100][100], i;
	cin >> n;
	for( i = 0; i < n; i++)
		cin >> total[i][100] >> effect[i][100];
	x = 10000 * effect[0][100] / total[0][100];
	for(i = 0; i < n - 1; i++)
	{
		y[i] = 10000 * effect[i + 1][100] / total[i + 1][100];
		if(y[i] - x > 500) 
		{
			cout << "better" << endl;
			continue;
		}
		if(x - y[i] > 500)
		{
			cout << "worse" << endl;
			continue;
		}
		cout << "same" << endl;
	}
	return 0;
}
int main()
{
    int n,i;
    float a[1000],b[1000],c[1000];
    scanf("%d",&n);
    for(i=1;i<=n;i++)
    {
        scanf("%f %f",&a[i],&b[i]);
    }
    c[1]=b[1]/a[1];
    for(i=2;i<=n;i++)
    {
                     c[i]=(b[i]/a[i]);
                     if(c[i]-c[1]>0.05)
                     {
                                     printf("better\n");
                     }
                     else if(c[1]-c[i]>0.05)
                     {
                          printf("worse\n");
                     }
                     else 
                     {
                          printf("same\n");
                     }
    }
    getchar();
    getchar();
    getchar();
    getchar();
    getchar();
}
int main(){
	int n,i,s=0;
	float x,y[300],a[300],b[300],m,p;
	scanf("%d",&n);
	scanf("%f %f",&m,&p);
    x=p/m;
	for(i=0;i<n-1;i++){
		scanf("%f %f",&a[i],&b[i]);
		y[i]=b[i]/a[i];
	}
	for(i=0;i<n-1;i++){
		if ((y[i]-x)>0.05){
			printf("better\n");
			s++;
		}
		else if ((x-y[i])>0.05){
			printf("worse\n");
			s++;
		}
		else {
			printf("same\n");
			s++;
		}

	}
	return 0;
}
int main()
{
	int n=0;
	cin >> n;
	float x,y,z;
	float a[n-1],b[n-1],c[n-1];
	cin >> x >> y;
	z=y/x;
	for(int i=1;i<=n-1;i++)
	{
		cin >> a[i] >> b[i];
		c[i]=b[i]/a[i];
		if(c[i]>(z+0.05)) cout << "better" <<endl; 
		else if(c[i]<(z-0.05)) cout << "worse" <<endl;
		else cout << "same" <<endl;
	}
	return 0;
}
int main()
{
    int n;
	float a , b, c;
	cin >> n;
	cin >> a >> b;
	c = b / a;
	int i;
	float x, a1, b1, c1;
	for (i=0; i<n-1; i++)
	{
		cin >> a1 >> b1;
	    c1 = b1 / a1;
		x = c1 - c;
		if (x > 0.05)
			cout << "better" << endl;
		else if (x < -0.05 )
			cout << "worse" << endl;
		else
			cout << "same" << endl;
	}
}
main()
{

    float c[1000];
    int n,i,a,b;
    scanf("%d",&n);
    for(i=1;i<=n;i++)
    {scanf("%d%d",&b,&a);c[i-1]=(float)a/b;}
    for(i=1;i<=n-1;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,sz[1000][2];
	double x,y;
	scanf("%d",&n);
	for(i=0;i<n;i++){
		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,i;
	int nz[30],ny[30];
	double old,news;
    scanf("%d%d%d",&n,&a,&b);
	old=1.0*b/a;
	for(i=0;i<n-1;i++){
	    scanf("%d%d",&nz[i],&ny[i]);
	}
	for(i=0;i<n-1;i++){
	    news=1.0*ny[i]/nz[i];
		if(news-old>0.05){
		    printf("better\n");
		}
		else if(news-old<-0.05){
		    printf("worse\n");
		}
		else{
		    printf("same\n");
		}
	}


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

	return 0;
}
int main()
{
	int n,i;
	scanf("%d",&n);
	int a,b;
	double e1,e2;
	scanf("%d %d",&a,&b);
	e1=(double)b/a;
	int c[100],d[100];
	for(i=0;i<n-1;i++){
		scanf("%d %d",&c[i],&d[i]);
		e2=(double)d[i]/c[i];
		if((e2-e1)>0.05)
			printf("better\n");
		else if((e1-e2)>0.05)
			printf("worse\n");
		else
			printf("same\n");
	}
	return 0;
}
int main(){
	int n,i,j;
	double x,y,sz[20][2];
	scanf("%d",&n);
	for(i=0;i<n;i++){
		for(j=0;j<2;j++){
			scanf("%lf",&sz[i][j]);
		}
	}
	x=sz[0][1]/sz[0][0];
	for(i=1;i<n;i++){
		y=sz[i][1]/sz[i][0];
		if(y-x>0.05){
			printf("better\n");
		}else if(x-y>0.05){
			printf("worse\n");
		}else if(x-y<=0.05||y-x>=0.05){
			printf("same\n");
		}
	}
	return 0;
}
//***********************************************************
//??????
//????????
//***********************************************************
int main()
{
	int n;
	cin>>n;
	double a,b;
	double x,y;
	cin>>a>>b;
	x=b/a;
	for(int i=2;i<=n;i++)
	{
		cin>>a>>b;
		y=b/a;
		if((y-x)>0.05&&(!(fabs(y-x-0.05)<1e-8)))
			cout<<"better"<<endl;
		else if(x-y>0.05&&(!(fabs(x-y-0.05)<1e-8)))
			cout<<"worse"<<endl;
		else cout<<"same"<<endl;
	}
	return 0;
}
int main()
{
	int n,i;
	int a[100],b[100];
	double c[100];
	scanf("%d",&n);
	scanf("%d %d",&a[0],&b[0]);
	for(i=1;i<n;i++){
		scanf("%d %d",&a[i],&b[i]);
	}
	for(i=0;i<n;i++){
		c[i]=(double)b[i]/a[i];
	}
	if(c[1]-c[0]>0.05){
		printf("better");
	}
	else if(c[0]-c[1]>0.05){
		printf("worse");
	}
	else{
		printf("same");
	}
	for(i=2;i<n;i++){
		printf("\n");
		if(c[i]-c[0]>0.05){
			printf("better");
		}
		else if(c[0]-c[i]>0.05){
			printf("worse");
		}
		else{
			printf("same");
		}
	}
	return 0;
}
int main()
{
int n,i,sum,x;
int a[100],b[100];

   scanf ("%d",&n);

   scanf ("%d%d",&sum,&x);

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

	  if ((x*0.1*10/sum-b[i]*0.1*10/a[i])>0.05){
	  
	  printf ("worse\n");}
	  
	  else if  ((b[i]*0.1*10/a[i]-x*0.1*10/sum)>0.05){
	  
	  printf ("better\n");}

	  else {printf ("same\n");}
   
   
   }

return 0;
}
int main()
{   
	float a[1000][3],x,y;
	int n,i;
	cin>>n;
	for(i=0;i<n;i++)
	{
		cin>>a[i][0]>>a[i][1];
	    a[i][2]=a[i][0]/a[i][1];
	}
	x=a[0][1]/a[0][0];
    for(i=1;i<n;i++)
	{
		y=a[i][1]/a[i][0];
		if((x-y)>0.05)
			cout<<"worse"<<endl;
		else if((y-x)>0.05)
			cout<<"better"<<endl;
		else
			cout<<"same"<<endl;

	}
	return 0;
}
int main( )
{
	int n,i=1;
	float a,b,c,d;
	cin>>n;
	cin>>a>>b;
	n=n-1;
	for(i=1;i<=n;i++)
	{
		cin>>c>>d;

		if(d/c-b/a>0.05) cout<<"better"<<endl;
		else if(b/a-d/c>0.05) cout<<"worse"<<endl;
		else cout<<"same"<<endl;
	}
	
	return 0;
}
int main()
{
    int n,i;
    double jw,othr,othf,oths;
    scanf("%d",&n);
    for(i=0;i<n;i++){
        scanf("%lf%lf",&othr,&othf);
        if(i==0)jw=othf/othr;
        else {
               oths=othf/othr;
               if((oths-jw)<=0.05&&(jw-oths)<=0.05)
                  printf("same\n");
               else if(oths<jw)
                  printf("worse\n");
               else printf("better\n");
               }
               }
    return 0;
}
int main()
{
	int n  , i;
	cin >> n ;
	int a[n] , b[n] ;
	double c[n];
	for (  i = 1 ; i <= n ; i++)
	{
		cin >> a[i] >> b[i];
		c[i] = b[i]/( a[i] * 0.01 ) ;
	}
	for( int k = 2 ; k <= n ; k++)
	{
		if ( (c[k] - c[1]) > 5.00 )
		cout << "better" << endl;
		else if (( c[1] - c[k]) > 5.00 )
		cout << "worse" << endl;
		else
		cout << "same" << endl;
	}
		return 0;
}
int main()
{
	int n,i,a[100],b[100];
	scanf("%d",&n);
	scanf("%d %d",&a[0],&b[0]);
	for(i=1;i<n;i++){
		scanf("%d %d",&a[i],&b[i]);
		double s;
		s=1.0*b[i]/a[i]-1.0*b[0]/a[0];
		if(s>0.05){
			printf("better\n");
		}else if(s<0&&s<-0.05){
			printf("worse\n");
		}else{
			printf("same\n");
		}
	}
	return 0;
}
int main()
{
	int n;//????
	cin>>n;
	float a,b,c;//?????????
	cin>>a>>b;
	c=b/a;//???????
	float d[100],e[100],f[100];//??????,??f????
	int i;//??????
	for (i=1;i<=n-1;i++)
	{
		cin>>d[i]>>e[i];
		f[i]=e[i]/d[i];
	}
	//????????
	int j;
	for (j=1;j<=n-1;j++)
	{
			if (f[j]-c>0.05)
			cout<<"better"<<endl;
		else if (f[j]-c<-0.05)
			cout<<"worse"<<endl;
		else if (f[j]-c>=-0.05&&f[j]-c<=0.05)
			cout<<"same"<<endl;
	}
	cin.get();
	return 0;
}
int main()
{
	int n,i;
	float c[100];
	struct A
	{
		float a;
		float b;
	}
	m[100];
	scanf("%d",&n);
	for(i=0;i<n;i++)
	{
		scanf("%f",&m[i].a);
		scanf("%f",&m[i].b);
		c[i]=m[i].b/m[i].a;
	}
	for(i=1;i<n;i++)
	{
		if(c[i]-c[0]>0.05)
			printf("better\n");
		else if(c[i]-c[0]<-0.05)
			printf("worse\n");
		else printf("same\n");
	}
	return 0;
}
int main()
{
	int i,n;
	double a[100];
	double g,f,x;
	scanf("%d",&n);
	for(i=0;i<n;i++){
		scanf("%lf %lf",&g,&f);
		a[i]=f/g;
		x=a[0];
	}
	for(i=1;i<n;i++)
	{
		if((a[i]-x)>0.05)
		{
				printf("better\n");
		}
		if((x-a[i])>0.05)
		{
                printf("worse\n");
		}
		else if((a[i]-x<=0.05)&&(x-a[i]<=0.05))
		{
				printf("same\n");
		}
	}
	return 0;
}
int main( )
{
	int a[100],b[100],c,d,n,i;
	double x,y[100];
	cin>>n>>c>>d;
	x=d*1.0/c;
	for (i=0;i<n-1;i++)
	{
		cin>>a[i]>>b[i];
		y[i]=b[i]*1.0/a[i];
	}
	for (i=0;i<n-1;i++)
	{
		if (y[i]-x>0.05) cout<<"better";
		else {if (x-y[i]>0.05) cout<<"worse";
		      else cout<<"same";}
		if (i!=n-2) cout<<endl;
	}
	return 0;
}
int main()
{
	int n;
	int zong[100],youxiao[100];
	double lv[100];
	scanf("%d",&n);
	for(int i=0;i<n;i++){
		scanf("%d",&zong[i]);
		scanf("%d",&youxiao[i]);
		lv[i]=(0.01*youxiao[i])/(0.01*zong[i]);
	}
	for(int j=1;j<n;j++){
		if(lv[j]-lv[0]>0.05){
			printf("better\n");
		}else if(lv[0]-lv[j]>0.05){
			printf("worse\n");
		}else{
			printf("same\n");
		}
	}
	return 0;
}
int main()
{
    int a,b,c;
    float m,n,r;
    cin>>a;
    cin>>m>>n;
    r=n/m;
    for(;a>1;a--)
    {
        cin>>m>>n;
        cout<<(n/m-r>0.05?"better":(r-n/m>0.05?"worse":"same"))<<endl;
    }
    return EXIT_SUCCESS;
}
int main()
{
   int n,i,j,a[1000],b[1000];
   double x,y,z;
   scanf("%d",&n);
   for(i=0;i<n;i++){
    scanf("%d %d",&a[i],&b[i]);}
   x=(double)b[0]/a[0];
   for(i=1;i<n;i++){
     y=(double)b[i]/a[i];
     z=y-x;
     if(z>0.05){printf("better\n");}
     else if(z<-0.05){printf("worse\n");}
     else{printf("same\n");}
     z=0;}
    return 0;
}
int main()
{
	int n,i;
	double cocktail1,cocktail2,cocktail,result;
	double extra1[10000],extra2[10000],extra[10000];
	cin>>n;
	cin>>cocktail1>>cocktail2;
	cocktail=cocktail2/cocktail1;
	for (i=0;i<n-1;i++)
	{
		cin>>extra1[i]>>extra2[i];
		extra[i]=extra2[i]/extra1[i];
	}

	for (i=0;i<n-1;i++)
	{
		result=extra[i]-cocktail;
		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(){
	int a[N],b[N];
	double c[N];
	int n,i;
	scanf("%d",&n);
	for(i=0;i<n;i++){
		scanf("%d %d",&a[i],&b[i]);
	}
	for(i=0;i<n;i++){
		c[i]=(((1.0*b[i]/a[i]))*100);
	}
	for(i=0;i<n;i++){
		if(i!=0){
		   if(c[i]-c[0]>5){
			    printf("better\n");
		   }else if(c[0]-c[i]>5){
			    printf("worse\n");
		   }else{
		    	printf("same\n");
		   }
		}
	}
    return 0;
	}
int main()
{
 int n,i;
 int a[10000][2];
 double b[10000];
 scanf("%d",&n);
 for(i=0;i<n;i++)
  scanf("%d %d",&a[i][0],&a[i][1]);
  b[0]=(double)a[0][1]/a[0][0];
 for(i=1;i<n;i++)
  {
  b[i]=(double)a[i][1]/a[i][0];
   if(b[i]-b[0]>0.05)
    printf("better\n");
   else if(b[i]-b[0]< -0.05)
    printf("worse\n");
   else               
    printf("same\n");
  }
  //getchar();  
  //getchar(); 
  return 0;
}
int main(){
	int n,a,b,j,k;
	int i;
	double c,d,e;
	scanf("%d",&n);
	scanf("%d%d",&a,&b);
	c=b*1.0/a;
	for(i=0;i<n-1;i++){
	  scanf("%d%d",&j,&k);
	  d=k*1.0/j;
	  e=d-c;
	  if(e>0.05){
	    printf("better\n");
	  }else if(e<-0.05){
	     printf("worse\n");
	  }else if(e>=-0.05&&e<=0.05){
	     printf("same\n");
	  } 
	}  
  return 0;
}
int main(){
    int n,i;
    double biao,x;
    double shuzu[20][2];
    scanf("%d",&n);
    for(i=0;i<n;i++){
        scanf("%lf %lf",&shuzu[i][0],&shuzu[i][1]);
                     }
    biao=shuzu[0][1]/shuzu[0][0];
    for(i=1;i<n;i++){
        x=shuzu[i][1]/shuzu[i][0];
        if(x-biao>0.05)
           printf("better\n");
        else if(biao-x>0.05)
           printf("worse\n");
        else
            printf("same\n");
                     }
    return 0;
}
int main()
{
	int n,a,b,i,sz[100],zs[100];
	float x,y[100];
	scanf("%d",&n);
	scanf("%d%d",&a,&b);
	x=(float)b/a*100;
	for(i=0;i<n-1;i++)
	{
		scanf("%d%d",&sz[i],&zs[i]);
		y[i]=(float)zs[i]/sz[i]*100;	
	}
	for(i=0;i<n-1;i++)
	{
	    if(y[i]-x>5)
		{
			printf("better\n");
		}
		else if(x-y[i]>5)
		{
			printf("worse\n");
		}
		else
		{
			printf("same\n");
		}
	}
	return 0;
}
int main(){
	int n,s,t,a,b,i;
    scanf("%d",&n);
	scanf("%d%d",&s,&t);
	for(i=0;i<n-1;i++){
		scanf("%d%d",&a,&b);
		if(1.0*b/a-1.0*t/s>0.05){printf("better\n");}
        else if(1.0*b/a-1.0*t/s<-0.05){printf("worse\n");}
		else{printf("same\n");}
	}
	return 0;
}
void panduan(double x,double y)
{
if((x-y)>(5.0/100))
cout<<"worse"<<endl;
else if((y-x)>(5.0/100))
cout<<"better"<<endl;
else
cout<<"same"<<endl;
}
struct liaoxiao
{
int a;
int b;
}h;
int main()
{
int n,i;
float c[10000];
cin>>n;
for(i=0;i<n;i++)
{
cin>>h.a;
cin>>h.b;
c[i]=h.b/(h.a*1.0);
}
for(i=1;i<n;i++)
{
panduan(c[0],c[i]);
}
return 0;
}
int main(){
	int i,n,zong[100],hao[100];
	double yx[100];
	scanf("%d",&n);
	scanf("%d %d",&zong[0],&hao[0]);
	yx[0]=1.0*hao[0]/zong[0];
	for(i=1;i<n;i++){
	      scanf("%d %d",&zong[i],&hao[i]);
          yx[i]=1.0*hao[i]/zong[i];
		  }
	for(i=1;i<n;i++){
		  if(yx[i]-yx[0]>0.05){
			  printf("better\n");
		  }else if(yx[0]-yx[i]>0.05){
			  printf("worse\n");
		  }else if(yx[i]-yx[0]<=0.05&&yx[0]-yx[i]<=0.05){
			  printf("same\n");
		  }
	}
return 0;
}
int  main(){
	int n,i;
	double a[100],b[100];
	double m,t;
	scanf("%d",&n);
	for(i=0;i<n;i++){
		scanf("%lf%lf",&a[i],&b[i]);
	}
	m=b[0]/a[0];
	for(i=1;i<n;i++){
		t=b[i]/a[i];
		if(t-m>0.05){
			printf("better\n");
		}else if(m-t>0.05){
			printf("worse\n");
		}else{
			printf("same\n");
		}
	}
	return 0;
}
int main (){
	int n,i;
	double m;
	int a[NUM],b[NUM];
	double c[NUM];
	scanf ("%d",&n);
	for(i=0;i<n;i++){
		scanf ("%d%d",&a[i],&b[i]);
	}
	m=(double)(b[0])/(a[0]);
	for(i=1;i<n;i++){
		c[i]=(double)(b[i])/(a[i]);
		if((c[i]-m)>0.05){
			printf ("better\n");
		}else if((m-c[i])>0.05){
			printf ("worse\n");
		}else{
			printf ("same\n");
		}
	}
	return 0;
}
int main()
{
	int zong[1000],hao[1000],n,i;
	float xiaol[1000];
	cin>>n;
	cin>>zong[0]>>hao[0];
	xiaol[0]=(float)hao[0]/zong[0];
	for(i=1;i<n;i++)
	{
		cin>>zong[i]>>hao[i];
		xiaol[i]=(float)hao[i]/zong[i];
	}
	for(i=1;i<n;i++)
	{
		if(xiaol[i]<xiaol[0]-0.05)
			cout<<"worse"<<endl;
		else if(xiaol[i]>xiaol[0]+0.05)
			cout<<"better"<<endl;
		else
			cout<<"same"<<endl;
	}
	return 0;
}
int main()
{
	int n,i;
	double a[100],b[100],x,y[100];
	scanf("%d",&n);
	for(i=0;i<n;i++)
	{
		scanf("%lf%lf",&a[i],&b[i]);
	}
	x=b[0]*1.0/a[0];
	for(i=1;i<n;i++)
	{
		y[i]=b[i]*1.0/a[i];
		if(x-y[i]>0.05)
			printf("worse\n");
		if(x-y[i]<-0.05)
			printf("better\n");
		if(x-y[i]<=0.05&&x-y[i]>=-0.05)
			printf("same\n");
	}
	return 0;
}
int main(){
	int n,i;
	double l,d,b,s[1000][2];
    scanf("%d",&n);
	for(i=0;i<n;i++){
		scanf("%lf %lf",&s[i][0],&s[i][1]);
	}
	d=s[0][1]/s[0][0];
	for(i=1;i<n;i++){
		l=s[i][1]/s[i][0];
		b=d-l;
		if(b>0.05){
			printf("worse\n");
		}
		if(b<-0.05){
			printf("better\n");
		}
		if((-0.05<=b)&&(b<=0.05)){
			printf("same\n");
		}
	}
	return 0;
}
/*
 * jiweijiu_liaofa.cpp
 *
 *  Created on: 2014-1-5
 *      Author: ??
 */
double rank(double all,double live){
	return live/all;
}
int main(){
    int n;cin>>n;
    double a[2];
    cin>>a[0]>>a[1];
    double std=rank(a[0],a[1]);
    for(int i=0;i<n-1;i++){
    	double aa[2];
    	cin>>aa[0]>>aa[1];
    	double stdd=rank(aa[0],aa[1]);
    	if(stdd-std>0.05)cout<<"better\n";
    	else if(std-stdd>0.05)cout<<"worse\n";
    	else cout<<"same\n";
    }
	return 0;
}
int main(){
	int i,n,a,b;
	scanf("%d",&n);
	double*s=(double*)malloc(sizeof(double)*n);
	for(i=0;i<n;i++){
		scanf("%d %d",&a,&b);
		s[i]=1.0*b/a;
	}
	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,a[100][2],i,j;
  	double  x,y;
	scanf("%d",&n);
	for(i=0;i<n;i++){
		for(j=0;j<2;j++){
			scanf("%d",&a[i][j]);}
	}   
	x=1.0*a[0][1]/a[0][0];
	for(i=1;i<n;i++){
			y=1.0*a[i][1]/a[i][0];
 			if(y-x>0.05) printf("better\n");
			else if(x-y>0.05) printf("worse\n");
			else printf("same\n");
			y=0;
	}
    return 0;
}
int main(){
int n,i;
scanf("%d",&n);
int a[100],b[100];
for(i=0;i<n;i++)
scanf("%d %d",&a[i],&b[i]);
double w,y[100];
w=(double)b[0]/a[0];
for(i=1;i<n;i++){
	y[i]=(double) b[i]/a[i];
	if(y[i]-w>0.05)
		printf("better\n");
	else if(w-y[i]>0.05)
		printf("worse\n");
	else
		printf("same\n");


}


return 0;
}