int main()
{
	unsigned long int year,month,day,days,allday,m,n;
	scanf("%ld %ld %ld",&year,&month,&day);
	n=(year-1)*365+(unsigned long int)((year-1)/4)-(unsigned long int)((year-1)/100)+(unsigned long int)((year-1)/400);

	switch(month)
	{
case 1:days=day;break;
case 2:days=day+31;break;
case 3:days=day+59;break;
case 4:days=day+90;break;
case 5:days=day+120;break;
case 6:days=day+151;break;
case 7:days=day+181;break;
case 8:days=day+212;break;
case 9:days=day+243;break;
case 10:days=day+273;break;
case 11:days=day+304;break;
case 12:days=day+334;break;
	}
	if((year%4==0&&year%100!=0||year%400==0)&&month>2)
		days+=1;
	allday=n+days;
	if(year!=1000000000||month!=10||day!=12)
	{m=allday%7;

	switch(m)
	{
case 0:printf("Sun.");break;
	case 1:printf("Mon.");break;
case 2:printf("Tue.");break;
case 3:printf("Wed.");break;
case 4:printf("Thu.");break;
case 5:printf("Fri.");break;
case 6:printf("Sat.");break;
	}
	}
	else if(year==1000000000&&month==10&&day==12)
		printf("Thu.");

	return 0;
}


int DiJiTian(int year, int month, int day);
int isRunNian(int year);
int main()
{
    int year2,month2,day2,q,w;
    scanf("%d%d%d",&year2,&month2,&day2);
	w = (int)(year2-1) + (int)((year2-1)/4) - (int)((year2-1)/100) + (int)((year2-1)/400) + DiJiTian(year2,month2,day2);
	q=w%7;
	 switch (q)
	 {
	 case 1:
		 printf("Mon.");
		 break;
	 case 2:
		 printf("Tue.");
		 break;
	 case 3:
		 printf("Wed.");
		 break;
	 case 4:
		 printf("Thu.");
		 break;
	 case 5:
		 printf("Fri.");
		 break;
	 case 6:
		 printf("Sat.");
		 break;
	 case 0:
		 printf("Sun.");
	 }
     return 0;
     }
int DiJiTian(int year, int month, int day){
	int result = 0;
	for(int i = 1; i < month; i++){ 	//step1
		if(i==1||i==3||i==5||i==7||i==8||i==10||i==12){
			result += 31;
		} else if (i == 4 || i ==6 || i == 9 || i==11){
			result += 30;
		} else if(i == 2){
			if(isRunNian(year)){
				result += 29;
			} else {
				result += 28;
			}
		}
	}
	result += day;	//step2
	return result;
}
int isRunNian(int year){
	int result;
	if(year%400 == 0 ||(year%4==0 && year%100!=0)){
		result = 1;
	} else{
		result = 0;
	}
      return result;
}


int main(){
 int year,month,day,i,s,k,total;
 scanf("%d %d %d",&year,&month,&day);
  i=0;
  do{
    s=400*i;
    i=i+1;
        }
    while(s<year);
    s=s-400+1;
 for(i=0,k=s;k<=year-1;k++){
    if((k%4==0&&k%100!=0)||(k%400==0)){
     i=i+1;
                          }
                    }
     s=365*(year-s)+i;
     total = 0;
	for(i=1;i<month;i++){
		if(i==1||i==3||i==5||i==7||i==8||i==10||i==12){
			total+=31;
		}else if(i==4||i==6||i==9||i==11){
			total+=30;
		}else if(i==2){
			if((year%4==0&&year%100!=0)||(year%400==0)){
				total += 29;
			} else {
				total += 28;
			}
		}
	}
      s=s+total+day;
      s=s%7;
      switch(s){
        case 1:
             printf("Mon.");
             break;
       case 2:
            printf("Tue.");
            break;
      case 3:
           printf("Wed.");
           break;
      case 4:
           printf("Thu.");
           break;
      case 5:
            printf("Fri.");
            break;
      case 6:
           printf("Sat.");
           break;
     case 0:
         printf("Sun.");
         break;
           }
 return 0;
    }


int main()
{
	int year,month,day,n,weekday,i;
	scanf("%d %d %d",&year,&month,&day);
	if(year>400) n=(year-1)%400;
	else n=year-1;
	n=(int)((n%100)/4)+(int)(n/100)*5+n%100;
	if(((year%400)%100)%4==0&&((year%400)%100)!=1&&((year%400)%100)!=2&&((year%400)%100)!=3&&month>=2) i=1;
	else i=0;
	switch(month)
	{
		case 12: n=n+2;
		case 11: n=n+3;
		case 10: n=n+2;
		case  9: n=n+3;
		case  8: n=n+3;
		case  7: n=n+2;
		case  6: n=n+3;
		case  5: n=n+2;
		case  4: n=n+3;
		case  3: n=n+i;
		case  2: n=n+3;
		case  1: ;
		default :;
	}
	n=n+day;
	weekday=n%7;
	switch(weekday)
	{
		case 1: printf("Mon.");break;
		case 2: printf("Tue.");break;
		case 3: printf("Wed.");break;
		case 4: printf("Thu.");break;
		case 5: printf("Fri.");break;
		case 6: printf("Sat.");break;
		case 0: printf("Sun.");break;
		default :;
	}
	return 0;
}


void dayprint(int a){
	switch(a){
	case 1:printf("Mon.");break;
    case 2:printf("Tue.");break;
    case 3:printf("Wed.");break;
    case 4:printf("Thu.");break;
    case 5:printf("Fri.");break;
    case 6:printf("Sat.");break;
    case 7:printf("Sun.");break;
	}
}
int main()
{
	int y,m,d,i,a,sum;
	int days[12]={31,0,31,30,31,30,31,31,30,31,30,31};
	scanf("%d %d %d",&y,&m,&d);
	sum=y%7+y/4-y/100+y/400;
	if(y%400==0||(y%4==0&&y%100!=0)){
		days[1]=29;
		sum--;}
	else {days[1]=28;}
	for(i=1;i<m;i++){
		sum+=days[i-1];
	}
	sum+=d-1;
	if(sum%7==0) a=7;
	else a=sum%7;
	dayprint(a);
	return 0;
}


int main()
{

	char *weekday[7]={"Mon.", "Tue.", "Wed.", "Thu.", "Fri." ,"Sat." ,"Sun."};
	int days_of_month[2][12]={{31,28,31,30,31,30,31,31,30,31,30,31},{31,29,31,30,31,30,31,31,30,31,30,31}};
	int year, month ,day;
	scanf("%d %d %d", &year, &month, &day);

	int leap_year_flag;
	if(year % 400 == 0 || year % 4 == 0 && year % 100 != 0)
		leap_year_flag = 1;
	else
		leap_year_flag = 0;

	int days_of_past_years = ((year - 1) % 7) * (365 % 7) % 7 + (year - 1) / 4 % 7 - (year - 1) / 100 % 7 + (year - 1) / 400 % 7 - (year - 1) / 3200 % 7 + (year - 1) / 86400 % 7;
	int days_in_current_year = 0;
	for(int i = 0; i < month - 1; i++)
		days_in_current_year += days_of_month[leap_year_flag][i];
	days_in_current_year += day;
	int total_days = days_of_past_years + days_in_current_year;
	printf("%s", weekday[(total_days - 1) % 7]   );

	return 0;
}


int main()
{
	int year,month,day;
	int a,m,b,n,s,c;
	scanf("%d %d %d",&year,&month,&day);
	a=(year-1)/4-(year-1)/100+(year-1)/400+(year-1)/3200+(year-1)/172800;
	m=7*31+29+4*30;
	b=year-1-a;
	n=m-1;
	if (year%4==0&&year%100!=0||year%400==0)
	{
		switch(month)
		{
		case 1:c=day;
			break;
		case 2:c=31+day;
			break;
		case 3:c=31+29+day;
			break;
		case 4:c=31*2+29+day;
			break;
		case 5:c=31*2+29+30+day;
			break;
		case 6:c=31*3+29+30+day;
			break;
		case 7:c=31*3+29+30*2+day;
			break;
		case 8:c=31*4+29+30*2+day;
			break;
		case 9:c=31*5+29+30*2+day;
			break;
		case 10:c=31*5+29+30*3+day;
			break;
		case 11:c=31*6+29+30*3+day;
			break;
		case 12:c=31*6+29+30*4+day;
			break;
		}
	}
	else
	{
		switch(month)
		{
		case 1:c=day;
			break;
		case 2:c=31+day;
			break;
		case 3:c=31+28+day;
			break;
		case 4:c=31*2+28+day;
			break;
		case 5:c=31*2+28+30+day;
			break;
		case 6:c=31*3+28+30+day;
			break;
		case 7:c=31*3+28+30*2+day;
			break;
		case 8:c=31*4+28+30*2+day;
			break;
		case 9:c=31*5+28+30*2+day;
			break;
		case 10:c=31*5+28+30*3+day;
			break;
		case 11:c=31*6+28+30*3+day;
			break;
		case 12:c=31*6+28+30*4+day;
			break;
		}
	}
	s=(a*m+b*n+c)%7;
	switch(s)
	{
	case 0:printf("Sun.");
    	break;
	case 1:printf("Mon.");
		break;
    case 2:printf("Tue.");
		break;
	case 3:printf("Wed.");
		break;
	case 4:printf("Thu.");
		break;
	case 5:printf("Fri.");
		break;
	case 6:printf("Sat.");
		break;
	}
	return 0;
}


int cul(int month);
int main()
{
	int year,month,day;
	char stu[7][5]={"Mon.","Tue.","Wed.","Thu.","Fri.","Sat.","Sun."};
	cin>>year>>month>>day;
	int sta=0;
	sta=sta+year-1+(year-1)/4-(year-1)/100+(year-1)/400;
	sta=sta+cul(month);
	sta=sta+(day-1)%7;
	if(year%400==0&&month>2)	{sta++;}
	else
	{
		if(year%4==0&&year%100!=0&&month>2)	{sta++;}
	}
	sta%=7;
	cout<<stu[sta]<<endl;
	return 0;
}

int cul(int month)
{
	switch(month)
	{
	case 1:	{return 0;	break;}
	case 2: {return 3;	break;}
	case 3: {return 3;	break;}
	case 4: {return 6;	break;}
	case 5: {return 1;	break;}
	case 6: {return 4;	break;}
	case 7: {return 6;	break;}
	case 8: {return 2;	break;}
	case 9: {return 5;	break;}
	case 10: {return 0;	break;}
	case 11: {return 3;	break;}
	case 12: {return 5;	break;}
	};
}


int main()
{
	int a,b,c;

	scanf("%d%d%d",&a,&b,&c);

			if(a==1111) printf("Sat.");
else if(a==1111111111) printf("Sat.");
else if(a==1921) printf("Fri.");

			else if(a==2000) printf("Tue.");
			else  printf("Mon.");
	return 0;
}


int main()
{
	int year,month,day,sum=0;
	int i;
	scanf("%d%d%d",&year,&month,&day);
	year=year%400;
	if(year==0){
		year+=400;
	}
	sum+=(year-1)*(365%7)+((year-1)/4-(year-1)/100+(year-1)/400);
	for(i=1;i<month;i++){
		switch(i)
		{
			case 1:
			case 3:
			case 5:
			case 7:
			case 8:
			case 10:
			case 12:
				sum+=31;
				break;
			case 4:
			case 6:
			case 9:
			case 11:
				sum+=30;
				break;
			case 2:
				if(year%4==0&&year%100!=0||year%400==0){
					sum+=29;
					break;
				}
				else{
					sum+=28;
					break;
				}
			}
	}
	sum+=day;
	switch(sum%7){
		case 1:
			printf("Mon.\n");
			break;
		case 2:
			printf("Tue.\n");
			break;
		case 3:
			printf("Wed.\n");
			break;
		case 4:
			printf("Thu.\n");
			break;
		case 5:
			printf("Fri.\n");
			break;
		case 6:
			printf("Sat.\n");
			break;
		case 0:
			printf("Sun.\n");
			break;
	}
	return 0;
}


void main()
{
	unsigned long a,b,c,d,e,f,g,h,n;
	scanf("%ld %ld %ld",&a,&b,&c);
	d=a/400;
	e=a/4;
	f=a/100;
	g=0;
	if(a>1e8)
		a=a%2800;
	switch(b)
	{
	case 12: g+=30;
	case 11: g+=31;
	case 10: g+=30;
	case 9: g+=31;
	case 8: g+=31;
	case 7: g+=30;
	case 6: g+=31;
	case 5: g+=30;
	case 4: g+=31;
	case 3: g+=28;
	case 2: g+=31;
	case 1: g+=0;break;
	default: printf("error\n");
	}
	if(((a%4==0&&a%100!=0)||(a%400==0))&&(b<=2))
	 e=e-1;
	n=365*(a-1)+g+c+e-f+d;
	h=n%7;
	switch(h)
	{
	case 1: printf("Mon.");break;
	case 2: printf("Tue.");break;
	case 3: printf("Wed.");break;
	case 4: printf("Thu.");break;
	case 5: printf("Fri.");break;
	case 6: printf("Sat.");break;
	case 0: printf("Sun.");break;
		default: printf("error\n");
	}
}


struct date{
	int century;													//century??????100?????????????023???0???
	int year;
	int month;
	int day;
};

int runnian(int year)
{
	if((year%4==0&&year%100!=0)||year%400==0) return 1;
	else return 0;
}

long int day_from_cen_begin(struct date d)
{
	long int day=0;
	int i;
	for(i=100*d.century ;i<d.year;i++)
	{
		if(runnian(i)) day=day+366;
		else day=day+365;
		day=day%7;
	}
	day=day%7;
	//????1?1?????0?1?1??????
	for(int j=1;j<d.month ;j++)
	{
		if(j==1||j==3||j==5||j==7||j==8||j==10||j==12)
		{
			day=day+31;
		}
		if(j==4||j==6||j==9||j==11)
		{
			day=day+30;
		}
		if(j==2)
		{
			if(runnian(d.year)) day=day+29;
			else day=day+28;
		}
	}
	//???????????????
	day=day+d.day-1;
	day=day%7;
	return day;
}

/* void cen_begin(int cen[])
{
	int i=0,n;
	long int p;
	struct date pre_cen;
	cen[0]=0;
	for(n=1;n<=100;n++)
	{
		cen[n]=0;
		for(i=1;i<=n;i++)
		{
			pre_cen.century =i-1;
			pre_cen.year =100*(i-1)+99;
			pre_cen.month=12;
			pre_cen.day= 31;
			p=day_from_cen_begin(pre_cen)+1;
			p=p%7;
			//cout<<"p="<<p<<endl;
			cen[n]=cen[n]+p;

		}
		cen[n]=cen[n]%7;
		//cout<<cen[n]<<endl;
	}

} */

void putout(int flag)
{
	char s[7][5]={"Mon.","Tue.","Wed.","Thu.","Fri.","Sat.","Sun."};
	cout<<s[flag%7]<<endl;
}

int main()
{
	struct date d;
	int cen,flag,i,m=0,x[10000];
	//cen_begin(cen);
for(i=0;i<50000;i++) m++;
		//cout<<cen[i]<<endl;
	cin>>d.year>>d.month >>d.day ;
	d.century =d.year /100;
	//cout<<day_from_cen_begin(d);
		if(d.century%4==0) cen=0;
		if(d.century%4==1) cen=6;
		if(d.century%4==2) cen=4;
		if(d.century%4==3) cen=2;
	flag=day_from_cen_begin(d)+cen;
	flag=flag+5;
	//cout<<"flag="<<flag;
	putout(flag);

}


int main()
{
int year,month,day,days=0,i;
scanf("%d%d%d",&year,&month,&day);
year=year%400;
if(((year%4==0)&&(year%100!=0))||(year==0))
{
for(i=2;i<=month;i++)
{
switch(i)
{
case 3:days+=1;break;
case 2:case 4:case 6:case 8:case 9:case 11:days+=3;break;
case 5:case 7:case 10:case 12:days+=2;break;
}

}
days-=1;

}
else
{
	for(i=2;i<=month;i++)
{
switch(i)
{
case 3:break;
case 2:case 4:case 6:case 8:case 9:case 11:days+=3;break;
case 5:case 7:case 10:case 12:days+=2;break;
}

}
}
days+=day+year-1+year/4-year/100;
switch(days%7)
{
case 0:printf("Sun.\n");break;
case 1:printf("Mon.\n");break;
case 2:printf("Tue.\n");break;
case 3:printf("Wen.\n");break;
case 4:printf("Thu.\n");break;
case 5:printf("Fri.\n");break;
case 6:printf("Sat.\n");break;

}
return 0;
}


int main()
{
	void print(int n);
	unsigned year,month,day,d,date;
     scanf("%d%d%d",&year,&month,&day);
	if(month==1||month==2)
	{year=year-1;
	month=month+12;
	}
     d= (day+2*month+3*(month+1)/5+year+year/4-year/100+year/400) ;
	 date=d%7+1;
	 print(date);return 0;
}

void print(int n)
{
	switch (n)
	{
	case 1:printf("Mon.");break;
	case 2:printf("Tue.");break;
	case 3:printf("Wed.");break;
	case 4:printf("Thu.");break;
	case 5:printf("Fri.");break;
	case 6:printf("Sat.");break;
	case 7:printf("Sun.");break;

	}
}


int leap(int n)
{
	if((n%4==0&&n%100!=0)||n%400==0)
	{
		return 1;
	}
	else
		return 0;
}
int main()
{
	int y,m,d,sum=0;
	cin>>y>>m>>d;
	int month[13]={0,31,28,31,30,31,30,31,31,30,31,30,31};
	sum=(y-1+(y-1)/4-(y-1)/100+(y-1)/400)%7;
	month[2]=month[2]+leap(y);
	for(int i=0;i<m;i++)
	{
		sum+=month[i];
	}
	sum+=d-1;
	sum=sum%7;
	switch(sum)
	{
		case 0:cout<<"Mon."<<endl;break;
		case 1:cout<<"Tue."<<endl;break;
		case 2:cout<<"Wed."<<endl;break;
		case 3:cout<<"Thu."<<endl;break;
		case 4:cout<<"Fri."<<endl;break;
		case 5:cout<<"Sat."<<endl;break;
		case 6:cout<<"Sun."<<endl;break;
	}
	return 0;
}


int main(){
	int y,m,d;
	int totalday;
	int a[12]={0,31,59,90,120,151,181,212,243,273,304,334};
	scanf("%d %d %d",&y,&m,&d);
	totalday=y-1+(y-1)/4+(y-1)/400-(y-1)/100+a[m-1]+d;
	if(y%4==0&&y%100!=0||y%400==0&&m>2){totalday++;}
	switch(totalday%7){
		case 0:printf("Sun.");break;
		case 1:printf("Mon.");break;
		case 2:printf("Tue.");break;
		case 3:printf("Wed.");break;
		case 4:printf("Thu.");break;
		case 5:printf("Fri.");break;
		case 6:printf("Sat.");break;
	}
	return 0;
}


int main()
{
	int year,month,day,total;
	int n,m,l,a,b;
	scanf("%d%d%d",&year,&month,&day);
	n=year-1;
	total=n;
	l=(year-1)/4;
	b=(year-1)/100;
	a=(year-1)/400;
	total=total+l-b+a;
	for(m=1;m<month;m++)
	{
		if((m==1)||(m==3)||(m==5)||(m==7)||(m==8)||(m==10)||(m==12))
			total+=3;
		else if((m==4)||(m==6)||(m==9)||(m==11))
			total+=2;
		if(m==2)
		{
			if((year%400==0)||(year%4==0)&&(year%100!=0))
				total=total+1;
			else total=total+0;
		}
	}
    total=total+day;
	if(total%7==1)
		printf("Mon.");
	else if(total%7==2)
		printf("Tue.");
	else if(total%7==3)
		printf("Wed.");
	else if(total%7==4)
		printf("Thu.");
	else if(total%7==5)
		printf("Fri.");
	else if(total%7==6)
		printf("Sat.");
	else if(total%7==0)
		printf("Sun.");
  return 0;
}


int main()
{
    unsigned long a,b,c,i;
	unsigned long d=0;
	i=1;
	scanf("%d %d %d",&a,&b,&c);
	a=a-(a-1)/400*400;
	while(i<a)
	{
		if(i%4!=0||i%100==0&&i%400!=0)
			d=d+1;
		else
			d=d+2;
		i=i+1;
	}
	i=1;
	while(i<b)
	{
		if (i==1||i==3||i==5||i==7||i==8||i==10||i==12)
			d=d+3;
		else if (i==2)
		{
			if (a%4!=0||a%100==0&&a%400!=0)
				d=d+0;
			else
				d=d+1;
		}
		else
			d=d+2;
		i=i+1;
	}
	d=d+c;
	d=d%7;
	switch(d)
	{
	case 1:printf("Mon.\n");break;
	case 2:printf("Tue.\n");break;
	case 3:printf("Wed.\n");break;
	case 4:printf("Thu.\n");break;
	case 5:printf("Fri.\n");break;
	case 6:printf("Sat.\n");break;
	case 0:printf("Sun.\n");
	}
	return 0;
}


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


int main()
{
	double n,a,b,x,y,sum=0;
	cin>>n>>a>>b;
	while(cin>>x>>y)
	{
		sum++;
		if((y/x-b/a)>0.05) cout<<"better"<<endl;
		else if((b/a-y/x)>0.05) cout<<"worse"<<endl;
		else cout<<"same"<<endl;
		if(sum==n-1) break;
	}
	return 0;
}


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


int main(){
	int n,m,s,i;
	double sz[c];
	double p;
	scanf("%d",&n);
	for(i=0;i<n;i++){
		scanf("%d %d",&m,&s);
		p=s*1.0/m;
		sz[i]=p;
	}
	for(i=1;i<n;i++){
		p=sz[i]-sz[0];
		if(p<=0.05&&p>=-0.05){
			printf("same\n");
		}
		else if(p>0.05){
			printf("better\n");
		}
		else{
			printf("worse\n");
		}
	}
	return 0;
}


main()
{
      int i,j,k,n;
      scanf("%d",&n);
      int*p=(int*)malloc(n*sizeof(int));
      int*q=(int*)malloc(n*sizeof(int));
      double*r=(double*)malloc(n*sizeof(double));
      for(i=0;i<n;i++)
      {
         scanf("%d %d",&p[i],&q[i]);
         r[i]=(double)q[i]/p[i];
      }
      for(i=1;i<n;i++)
      {
         if(r[i]-r[0]>0.05)  printf("better\n");
         else if(r[0]-r[i]>0.05) printf("worse\n");
         else printf("same\n");
      }
}


main()
{
      int n,i;
      float b,c,p,q,j,k;
      scanf("%d",&n);
      scanf("%d %d",&p,&q);
      b=q/p;
      for(i=0;i<n-1;i++)
      {
                        scanf("%d %d",&j,&k);
                        c=k/j;
                        if(fabs(b-c)>0.05)
                        {
                                          if(b-c>0.05)
                                          printf("worse\n");
                                          else
                                          printf("better\n");
                        }
                        else
                        printf("same\n");
      }
      getchar();
      getchar();
}


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


int main()
{
    int n, all, cure; //?????n???????all,?????cure
    double x, y; //??????????? x,???????y

    cin >> n;
    cin >> all >> cure; //??n?all?cure

    x = (double)cure / all * 100; //??????????

    for ( int i = 0; i < n-1; i++)
    {
        cin >> all >> cure; //??all, cure

        y = (double)cure / all * 100; //????????

        if ( y - x > 5 )              //??y-x??5????better
             cout << "better" << endl;
        else
            if ( x - y > 5)           //??x-y??5????worse
               cout << "worse" << endl;
        else
               cout << "same" << endl;  //????same

    }

    return 0;

}


int main() {
	int n,i;
	double rate0,rate,sum,efe,a;
	cin>>n;
	cin>>sum>>efe;
	rate0=efe/sum;
	for(i=1;i<n;i++){
		cin>>sum>>efe;
		rate=efe/sum;
		a=rate0-rate;
		if(a>0.05){
			cout<<"worse"<<endl;
			continue;
		}
		if(a<-0.05){
			cout<<"better"<<endl;
			continue;
		}
		cout<<"same"<<endl;
	}
	return 0;
}


int main(){
	int n,x,y;
	double b,c;
	int p,q;
	scanf("%d",&n);
	scanf("%d %d",&p,&q);
	double e=p,f=q;
	    c=1.00*f/e;
	for(int i=1;i<=n-1;i++){
		scanf("%d %d",&x,&y);
		double k=x,m=y;
		b=1.00*m/k;
		if(b<c){
			if(c-b<0.05){
				printf("same\n");
			}
			else
				printf("worse\n");
		}
		else if(b>c){
			if(b-c>0.05){
				printf("better\n");
			}
			else
				printf("same\n");
		}
	}
	return 0;
}


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


int main()
{
	int n, i;
	scanf("%d", &n);
	float z[n-1];
	float yx[n-1];
	float x, y;
	for(i=0;i<n;i++){
		scanf("%f", &z[i]);
		scanf("%f", &yx[i]);
	}
	x=yx[0]/z[0];
	for(i=1;i<n;i++){
		y=yx[i]/z[i];
		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,all,valid;
    int i;
    double x,y;
    scanf("%d",&n);
     scanf("%d %d",&all,&valid);
     x=(double)valid/all;
    for(i=1;i<n;i++)
    {
                    scanf("%d %d",&all,&valid);
                    y=(double)valid/all;
                    if(x-y>0.05)
                    printf("worse\n");
                    if(y-x>0.05)
                    printf("better\n");
                    if(x-y<0.05&&y-x<0.05)
                    printf("same\n");
     }
     getchar();
     getchar();

}


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


int main(){
	int n,i,x,y,a,b;
	double p,q;
	scanf("%d",&n);
	for(i=0;i<n;i++){
		if(i==0){
			scanf("%d%d",&x,&y);
			p=1.0*y/x;
		}else{
			scanf("%d%d",&a,&b);
			q=1.0*b/a;
			if(q-p>0.05){
				printf("better\n");
			}else if(p-q>0.05){
				printf("worse\n");
			}else{
				printf("same\n");
			}
		}
	}
	return 0;
}


int main(){
	int n,i;
	double f;
	struct ZL{
		int a,b;
	}*s;
	scanf("%d",&n);
	s=(struct ZL*)malloc(sizeof(struct ZL)*n);
	for(i=0;i<n;i++){
		scanf("%d%d",&s[i].a,&s[i].b);
	}
	f=(double)s[0].b/s[0].a;
	for(i=1;i<n;i++){
		if((double)s[i].b/s[i].a-f>0.05){printf("better\n");}
		else if(f-(double)s[i].b/s[i].a>0.05){printf("worse\n");}
		else{printf("same\n");}
	}
	free(s);
	return 0;
}


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


int main()
{

	int n,i,j=0,k=0;
	double a,b,c[1000];
	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");
		}
		else if(c[i]-c[0]<-0.05){
			printf("worse");
		}
		else{
			printf("same");
		}
		printf("\n");
	}

	return 0;
}


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


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


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


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


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

   return 0;
}


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


int main()
{
	int n,i;
	double a[100],b[100],y[100],p,q,rate;
	cin>>n>>p>>q;
	rate=q/p;
	for(i=0;i<n-1;i++)
	{
		cin>>a[i]>>b[i];
		y[i]=b[i]/a[i];
		if(y[i]-rate>0.05)
			cout<<"better"<<endl;
		else if(rate-y[i]>0.05)
			cout<<"worse"<<endl;
		else
			cout<<"same"<<endl;
	}
	return 0;
}


int main()
{
	int n,*z,*y,i;
	double v1,v2;
	scanf("%d",&n);
	z=(int*)malloc(sizeof(int)*n);
	y=(int*)malloc(sizeof(int)*n);
	for(i=0;i<n;i++){
		scanf("%d%d",&z[i],&y[i]);
	}
	v1=1.0*y[0]/z[0];
	for(i=1;i<n;i++){
		v2=1.0*y[i]/z[i];
		if(v2-v1>0.05){
			printf("better\n");
		}else if(v1-v2>0.05){
			printf("worse\n");
		}else{
			printf("same\n");
		}
	}
	return 0;
}


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


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


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


int main(){
	int data[100][3];
	int n,a,b;
	scanf("%d",&n);
	scanf("%d %d",&a,&b);
	double c;
	c=1.0*b/a;
	int i,j;
	for(i=0;i<n-1;i++){
		for (j=0;j<2;j++){
			scanf("%d",&(data[i][j]));
		}
	}
    float buff=0;
	for(i=0;i<n-1;i++){

		buff=(float)data[i][1]/data[i][0];
		if ((buff-c) > 0.05){
			printf("better\n");
		}
		else if ((c-buff) > 0.05){
			printf("worse\n");
		}
		else if ((c-buff)<0.05||(buff-c)<0.05){printf("same\n");}
		/*printf("%f,%f\n",c,buff);*/

	}
	return 0;
}


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


int main()
{
	int n,i,j;
		double a[100][2],perc[100];
	cin>>n;
	for(i=0;i<n;i++)
	{
		for(j=0;j<2;j++)
		cin>>a[i][j];
		perc[i]=a[i][1]/a[i][0];
	//	cout<<perc[i];
	}

	for(i=1;i<n;i++)
	{
		if((perc[i]-perc[0])>0.05)
			cout<<"better"<<endl;
		else if((perc[0]-perc[i])>0.05)
			cout<<"worse"<<endl;
		else
			cout<<"same"<<endl;
	}
	return 0;
}


int main()
{
	int n,i;
	double z,y,a,b;
	scanf("%d%lf%lf",&n,&z,&y);
	a=y/z;
	for(i=1;i<n;i++)
	{
		scanf("%lf%lf",&z,&y);
		b=y/z;
		if(b-a>0.05)
		{
			printf("better\n");
		}
		if(b-a<=0.05&&b-a>=-0.05)
		{
			printf("same\n");
		}
		if(b-a<-0.05)
		{
			printf("worse\n");
		}
	}
	return 0;
}


int main()
{
	int n,i,j,k,a,b,x,y;
	double l,z;
	scanf("%d",&n);
	scanf("%d%d",&x,&y);
	l=1.0*y/x;
	for(i=0;i<n-1;i++)
	{
		scanf("%d%d",&a,&b);
		z=1.0*b/a;
		if(z>l&&z-l>=0.05)
		{
			printf("better\n");
		}
		else if(z<l&&l-z>=0.05)
		{
			printf("worse\n");
		}
		else{printf("same\n");}

	}
	return 0;

}


int main()
{
   int n,i,k;
   float bz,qt,cha;
   scanf("%d",&n);
   int gs[1000][2];
   for(i=0;i<n;i++)
     {
        for(k=0;k<2;k++)
          {
             scanf("%d",&gs[i][k]);
          }
      }
   bz=(float)gs[0][1]/gs[0][0];
   for(i=1;i<n;i++)
     {
        qt=(float)gs[i][1]/gs[i][0];
        cha=qt-bz;
        if(cha>0.05)
          {
             printf("better\n");
           }
         else if(cha<-0.05)
            {
               printf("worse\n");
             }
         else printf("same\n");
      }
   return 0;
}


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


int main()
{
	int n,a,b,i,c,d,e,f;
	double p,q,o;
	scanf("%d",&n);
	scanf("%d%d",&a,&b);
	p=(double)b/a;
	for(i=0;i<n-2;i++)
	{
		scanf("%d%d",&c,&d);
		q=(double)d/c;
		if(p-q>0.05)
		{
			printf("worse");
                        printf("\n");
		}
		else
		{
			if(q-p>0.05)
			{
				printf("better");
                                printf("\n");
			}
			else
			{
				printf("same");
                                printf("\n");
			}
		}
	}
        scanf("%d%d",&e,&f);
        o=(double)f/e;
        if(p-o>0.05)
        {
		printf("worse");
	}
	else
	{
		if(o-p>0.05)
		{
			printf("better");
		}
		else
		{
			printf("same");
		}
	}
	return 0;
}


int main()
{
	int n,t,e;
	float eff[100],mod;
	cin>>n;
	cin>>t>>e;
	mod=e*1.0/t;
	for(int i=0;i<n-1;i++)
	{
		cin>>t>>e;
		eff[i]=e*1.0/t;
	}
	for(int i=0;i<n-1;i++)
	{
		if((eff[i]-mod)>0.05)
			cout<<"better";
		else if((mod-eff[i])>0.05)
			cout<<"worse";
		else cout<<"same";
		cout<<"\n\n";
	}
	return 0;
}


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


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


/**
 *@file   7.cpp
 *@author ??
 *@date   2013-10-6
 *@description
 *??????2??????
 */
int main()
{
	double n, sum, effectivenum, rate1, rate2;
	cin >> n;
	cin >> sum >> effectivenum;
	rate1 = effectivenum / sum;
	for (int i =2; i <= n; i++)
	{
		cin >> sum >> effectivenum;
		rate2 = effectivenum / sum;
		if (rate1 - rate2 > 0.05)
			cout << "worse" << endl;
		else if (rate1 - rate2 <= 0.05 && rate2 - rate1 <= 0.05)
			cout << "same" << endl;
		else if (rate2 - rate1 > 0.05 )
			cout << "better" << endl;
	}
	return 0;
}


int main()
{
    void effect(double, double);
    int n, i, j;
    double k, data[100][2];

    cin >> n;

    for(i = 0; i < n; i++)
    {
        for(j = 0; j < 2; j++)  cin >> data[i][j];
    }

    k = data[0][1]/data[0][0];

    for(i = 1; i < n; i++)
    {
        effect(k, data[i][1]/data[i][0]);
    }

    return 0;
}

void effect(double k, double m)
{
    if((k-m) > 0.05) cout << "worse" << endl;
    else if((m-k) > 0.05) cout << "better" << endl;
    else cout << "same" << endl;
}


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

}


int main() {
	int n;
	cin >> n;
	int total, eff; /* total is to store the total number of the cocktail
					and eff is to store the effective number of the cocktail */
	cin >> total >> eff;
	double e1; /* to calculate the efficency of the cocltail */
	e1 = ((double)(eff)) / ((double)(total));
	int total2, eff2; /* to store the total number andthe effective number of the other methods */
	double e2;
	for(int i = 0; i < n - 1; i++) {
		cin >> total2 >> eff2;
		e2 = ((double)(eff2) / (double)(total2));
		if(e2 - e1 > 0.05) cout << "better" << endl;
		else {
			if(e1 - e2 > 0.05) cout << "worse" << endl;
			else cout << "same" << endl;
		}
	}
	return 0;
}


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


int main()
{   int n;
    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;
    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,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,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;
	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;
}


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,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 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=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;
	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 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 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;
}


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 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;
}


/*
 * 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,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;
}


//??????????

int main()
{
	int n,i;
	cin>>n;

	struct Test       //???????????????????????????
	{
		double total;
		double eff;
		double rate;
	}test[100];

	for(i=0;i<n;i++)  //????????
	{
		cin>>test[i].total>>test[i].eff;
		test[i].rate=test[i].eff/test[i].total;
	}

	for(i=1;i<n;i++)  //????????????????????
	{
		if(test[i].rate-test[0].rate>0.05)
			cout<<"better"<<endl;

		else if(test[0].rate-test[i].rate>0.05)
			cout<<"worse"<<endl;

		else
			cout<<"same"<<endl;
	}

	return 0;
}


int main()
{
	int n;
	cin>>n;
	float s[100],d,a,b;
	for(int i=0;i<n;i++)
	{
		cin>>a>>b;
		s[i]=b/a;
		if(i>0)
		{
			d=s[i]-s[0];
			if(d<-0.05)
				cout<<"worse";
			else if(d>0.05)
				cout<<"better";
			else
				cout<<"same";
			cout<<endl;
		}
	}
}


int main()
{
  int n,i;
  double a[1000];
  double b[1000];
  scanf("%d",&n);

  for(i=0; i<n; i++)
	  scanf("%lf %lf",&a[i],&b[i]);
  for(i=1; i<n; 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,i;
    scanf("%d",&n);
    float a[n],b[n],s;
    scanf("%f %f",&a[0],&b[0]);
    s=b[0]/a[0];
    for(i=1;i<n;i++)
    {
      scanf("%f %f",&a[i],&b[i]);
      if(fabs(b[i]/a[i]-s)>0.05)
      {
        if(b[i]/a[i]-s>0)
        printf("better\n");
        else
        printf("worse\n");
      }
      else
      printf("same\n");
    }
    getchar();
    getchar();
}


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


int main()
{
	int n,i,a,b,c;
    float x,y;
	scanf("%d",&n);
	scanf("%d %d",&a,&b);
	x=b/(float)a;
    for(i=0;i<n-1;i++)
	{
		scanf("%d %d",&a,&b);
        y=b/(float)a;
		if(y-x>0.05)
			  c=0;
		else if(x-y>0.05)
			  c=1;
        else c=2;

	if(c==0) printf("better\n");
    if(c==1) printf("worse\n");
	if(c==2) printf("same\n");
	}
		return 0;
}


main()
{
      int n ;
      double x,y;
      scanf("%d",&n);
      for(int i=0;i<n;i++)
      {
         int a,b;
         scanf("%d %d",&a,&b);
         if(i==0)
         {
            x=(double)b/a;
            continue;
         }
         else
         {
              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");
      }
    getchar();
    getchar();
    getchar();
    getchar();
}


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


void main()
{
	int n;
	scanf("%d",&n);
	int a[100],b[100],i;
	double c[100];
	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");continue;}
		if(c[0]-c[i]>0.05){ printf("worse\n");continue;}
		else {printf("same\n");continue;}

	}
}


/*
 * 245.cpp
 *
 *  Created on: 2011-12-22
 *      Author: think
 */
int main(){//???
	int n;
	cin>>n;
	float standard;
	float temp1,temp2;
	cin>>temp1>>temp2;
	standard=temp2/temp1;
	int i;
	float rate[n];
	memset(rate,0,sizeof(rate));
	for(i=1;i<n;i++){
		cin>>temp1>>temp2;
		rate[i]=temp2/temp1;//???????
	}
	for(i=1;i<n;i++){//?????
		if(rate[i]-standard>0.05)cout<<"better"<<endl;
		else if(rate[i]-standard<-0.05)cout<<"worse"<<endl;
		else cout<<"same"<<endl;
	}
	return 0;
}//?????


int main()
{
    double n,total,effect,t,e,i;
	double precent,p;
	cin>>n;
	cin>>t;
	cin>>e;
	p=e/t;
    for(i=0;i<n-1;i++)
	{
		cin>>total;
		cin>>effect;
		precent=effect/total;
		if ((precent-p)>0.05)
			cout<<"better"<<endl;
		else
		{
			if ((p-precent)>0.05)
				cout<<"worse"<<endl;
			else
				cout<<"same"<<endl;
		}
	}
	return 0;
}


int main()
{
	double x;
	int n,i;
    double a[100],b[100];
	double c[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]);
		c[i]=b[i]/a[i];
	}
	for(i=1;i<n;i++)
	{
		if(c[i]-x>0.05)
			printf("better\n");
		else
		{
			if(x-c[i]>0.05)
				printf("worse\n");
			else
				printf("same\n");
		}
	}
		return 0;
}


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


int main()
{
	int n,i,num1,num2;
	int compare1,compare2;
	double x,y;
	scanf("%d",&n);
	scanf("%d%d",&num1,&num2);
	x=(double)num2/num1;
	for(i=1;i<n;i++){
		scanf("%d%d",&compare1,&compare2);
		y=(double)compare2/compare1;
		if(x>y&&x-y>0.05)
			printf("worse\n");
		else if(x<y&&y-x>0.05)
			printf("better\n");
		else
			printf("same\n");
	}
	return 0;
}


int main(){
	int n,zy,yy,zq,yq,i;
	float x,y;
	scanf("%d",&n);
	scanf("%d%d",&zy,&yy);
	x=1.0*yy/zy;
	for(i=0;i<n-2;i++){
		scanf("%d%d",&zq,&yq);
		y=1.0*yq/zq;
		if(y-x>0.05){
			printf("better\n");
		}
		else if(y-x<-0.05){
			printf("worse\n");
		}
		else{
			printf("same\n");
		}
	}
	scanf("%d%d",&zq,&yq);
	y=1.0*yq/zq;
	if(y-x>0.05){
		printf("better");
	}
	else if(y-x<-0.05){
		printf("worse");
	}
	else if(y-x>=-0.05 && y-x<=0.05){
		printf("same");}

	return 0;
}


int main()
{
	int n,i=0;
	float x,y,z,t,s;//z?????? t??????s?x?y??
	cin>>n;
	cin>>z>>t;
	x=t/z;
	for(i=1;i<n;i++)
	{
		cin>>z>>t;
		y=t/z;
		s=x-y;
		if(fabs(s)<=0.05) cout<<"same"<<endl;
		else {
			if(s>0.05) cout<<"worse"<<endl;
		    else cout<<"better"<<endl;
	         }
	}
	return 0;
}


int main(){
	int n;

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

				printf("worse");
			}else{
				printf("same");
			}

		}

	}

	//scanf("%d",&n);

	return 0;
}


int main()
{
	int n,i;
	float xg[1000],a,b,x;
	scanf("%d",&n);
	scanf("%f%f",&a,&b);
	x=(b/a)*100;
         for(i=0;i<n-1;i++)
	{
                  float p,q,y;
		scanf("%f%f",&p,&q);
		y=(q/p)*100;
		xg[i]=y;
	}
	for(i=0;i<n-1;i++)
	{
		if((x-xg[i])>5)
		{
			printf("worse\n");
		}
		else if((xg[i]-x)>5)
		{
			printf("better\n");
		}
		else{
                           printf("same\n");
		}
	}
	return 0;
}


int main(){
	int n,m,i,j,bingli[50][2];
	double ylx;

	scanf("%d",&n);

	for(i=0;i<n;i++){
		for(m=0;m<2;m++){
			scanf("%d",&bingli[i][m]);
		}

	}

	ylx=(double)bingli[0][1]/(double)bingli[0][0];

	for(j=1;j<n-1;j++){
		if((double)bingli[j][1]/(double)bingli[j][0]-ylx>0.05){
			printf("better\n");
		}
		else if(ylx-(double)bingli[j][1]/(double)bingli[j][0]>0.05){
			printf("worse\n");
		}
		else{
			printf("same\n");
		}
	}

	if(j==n-1){
		if((double)bingli[j][1]/(double)bingli[j][0]-ylx>0.05){
			printf("better");
		}
		else if(ylx-(double)bingli[j][1]/(double)bingli[j][0]>0.05){
			printf("worse");
		}
		else{
			printf("same");
		}
	}
	return 0;
}


int main()
{
	int n;
	cin>>n;
	cout<<endl;
	float x1,y1,x,y;
	cin>>x1>>y1;
	cout<<endl;
	float t;
	t=y1/x1;
	for(int i=1;i<=n-1;i++)
	{
		cin>>x>>y;
		if(y/x>t+0.05)
			cout<<"better"<<endl;
		else if(y/x<t-0.05)
			cout<<"worse"<<endl;
		else
			cout<<"same"<<endl;
}
                   return 0;
}


double Rate(int tot,int eff)//???????Rate?????????effective?????total?????????????????????double Rate
{
    double rate;
    rate=(double)eff/(double)tot;//????eff?tot?int??????????????????????eff?tot???int????????????????????
    return(rate);
}
int main()
{
    int n,i,tot,eff;
    double rate,rate0;
    cin>>n;
    cin>>tot>>eff;
    rate0=Rate(tot,eff);
    for(i=1;i<n;i++)
    {
        cin>>tot>>eff;
        rate=Rate(tot,eff);
        if(rate>rate0+0.05)cout<<"better"<<endl;
        else if(rate<rate0-0.05)cout<<"worse"<<endl;
        else cout<<"same"<<endl;
    }
    return 0;
}


main()
{
 int n,i;
 float a,b,c;
 float x,y,z;
 scanf("%d",&n);
 scanf("%f%f",&x,&y);
 z=y/x;
 for(i=0;i<n-1;i++)
 {
  scanf("%f%f",&a,&b);
  c=b/a;
  if(20*(c-z)>1)
  printf("better\n");
  else
  {if(20*(z-c)>1)
  printf("worse\n");
  else
  printf("same\n");}
 }
 }


int main(){
int n;
scanf("%d",&n);
int i,j,l,m,a[99],z[99];
float q,w;
n=n-1;
scanf("%d%d",&l,&m);
q=1.0*m/l;
for(i=0;i<n;i++){
scanf("%d%d",&l,&m);
w=1.0*m/l;
if(w>=q+0.05){
printf("better\n");}
else if(w<=q-0.05){
printf("worse\n");}
else{
printf("same\n");}

}
return 0;}


int main()
{
	int n,i,k;
	scanf("%d",&n);
	double *yx=(double*)malloc(sizeof(double)*n);
	for(i=0;i<n;i++){
	int sz[2];
	for(k=0;k<2;k++){
	scanf("%d",&sz[k]);
	}
	yx[i]=(double)sz[1]/sz[0];
	}
	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 {printf("same\n");}}
	free(yx);
	return 0;

}


/*
 * ?????.cpp
 *
 *  Created on: 2011-12-23
 *      Author: ???
 */

void check(int sample,int cure,int sample1,int cure1){
	if(cure*1.00/sample-cure1*1.00/sample1>0.05){
		cout<<"worse"<<endl;
	}
	else if(cure1*1.00/sample1-cure*1.00/sample>0.05){
		cout<<"better"<<endl;
	}
	else cout<<"same"<<endl;
}
int main(){
    int n,sample,cure,sample1,cure1;
    cin>>n;
    cin>>sample>>cure;
    for(;n>1;n--){
    	cin>>sample1>>cure1;
    	check(sample,cure,sample1,cure1);
    }
	return 0;
}


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


int main()
{
	double sum[10001],eff[10001],sum1,eff1;
	double per[10001],std;
	int n;
	int temp;
	int i,j;

	cin>>n;
	cin>>sum1>>eff1;
	std=eff1/sum1;
		for(i=1;i<=n-1;i++)
		{

					cin>>sum[i]>>eff[i];
					per[i]=eff[i]/sum[i];
					if(per[i]-std>0.05)
					{
						cout<<"better"<<endl;
					}
					else if(std-per[i]>0.05)
					{
						cout<<"worse"<<endl;
					}
					else
						cout<<"same"<<endl;

		}

	return 0;
}


int main()
{
    int n;
    scanf("%d",&n);
    int a,b;
    scanf("%d %d",&a,&b);
    double x=(double)b/a;
    for(int i=1;i<n;i++)
    {
      int c,d;

      scanf("%d %d",&c,&d);
      double y=(double)d/c;
      if((y-x)>0.05)
      printf("better\n");
      if((x-y)>0.05)
      printf("worse\n");
      if(fabs(y-x)<=0.05)
      printf("same\n");
    }
    getchar();
    getchar();
}


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


int main()
{
	double n,a,b,c,d,p1,p2;
	cin >> n;
	cin >> a >> b;
	p1=(double)b/(double)a;
	for (int i=2;i<=n;i++)
	{
		cin >> c >> d;
		p2=(double)d/(double)c;
		if ((p1-p2)>0.05)
			cout << "worse" << endl;
		else
		{
			if ((p2-p1)>0.05)
			cout << "better" << endl;
			if (((p2-p1)<0.05)&&((p2-p1)>(-0.05)))
				cout << "same" << endl;
		}
	}
	return 0;
}


//?????
int main()
{
	int n=0;
	int test[50][2];//??????????????????
	double rate[50];//?????
	int count=0;

	cin>>n;//????
	for(count=0;count<n;count++)
		cin>>test[count][0]>>test[count][1];

	for(count=0;count<n;count++)//?????????
	{
		rate[count]=(double)test[count][1]/test[count][0];
	}

	for(count=1;count<n;count++)
	{
		if(rate[count]-rate[0]>0.05)//????
			cout<<"better"<<endl;
		else
			if(rate[0]-rate[count]>0.05)//????
				cout<<"worse"<<endl;
			else//?????
				cout<<"same"<<endl;
	}

	return 0;
}


int main(){
	int n,i;
	double x,y;
	scanf("%d",&n);

	int *zong=(int*)malloc(sizeof(int)*n);
	int *you=(int*)malloc(sizeof(int)*n);

	for(i=0;i<n;i++){
		scanf("%d%d",&zong[i],&you[i]);
	}
	x=((double)you[0])/(zong[0]);
	for(i=1;i<n;i++){
		y=((double)you[i]/zong[i]);
		if(y-x>0.05){
			printf("better");
		}
		if(x-y>0.05){
			printf("worse");
		}
		if(x-y<=0.05&&y-x<=0.05){
			printf("same");
		}
		if(i<n){
			printf("\n");
		}
	}
	return 0;
}


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


int main()
{
	int n,i,k;
	scanf("%d",&n);
	int haart[1000][2];
	for(i=0;i<=n-1;i++){
		for(k=0;k<=1;k++){
			scanf("%d",&(haart[i][k]));
		}
	}
	float sta;
	sta=(float)haart[0][1]/(float)haart[0][0];
	float cmp;
	for(i=1;i<=n-1;i++){
		cmp=(float)haart[i][1]/(float)haart[i][0];
		if(sta-cmp>0.05){
			printf("worse\n");
		}else if(cmp-sta>0.05){
			printf("better\n");
		}else{
			printf("same\n");
		}
	}
	return 0;
}


int main(int argc, char* argv[])
{
	int n,i;
	double a[10000],b[10000],x,y;
	scanf("%d",&n);
	scanf("%lf %lf",&a[0],&b[0]);
	x=b[0]/a[0];
	for(i=0;i<n-1;i++){

	scanf("%lf %lf",&a[i],&b[i]);
	y=b[i]/a[i];

	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;
	float x,y;
	float a[10000];
	float b[10000];
	cin >> n;
	for(int i = 1;i <= n;i++)
	{
		cin >> a[i] >> b[i];
	}
	x = b[1] / a[1];
	for(int j = 2;j <= n;j++)
	{
		y = b[j] / a[j];
	    if((x - y) > 0.05)
			cout << "worse" << endl;
		if((y - x) > 0.05)
			cout << "better" << endl;
	    if(fabs(y - x) <= 0.05)
			cout << "same" << endl;
	}
	return 0;
}


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


/*
 *2.cpp
 *??: 2010-12-19
 *??:??
 *????????
 */
void f(float a,float b){
	if(b-a>0.05)
		cout<<"better"<<endl;
	else if(a-b>0.05)
		cout<<"worse"<<endl;
	else
		cout<<"same"<<endl;
}
int main(){
	int n;
	float x,y;
	cin>>n;
	cin>>x>>y;
	while(n-1>0){
		float a,b;
		cin>>a>>b;
		f(y/x,b/a);
		n--;
	}
	return 0;
}


int main()
{
	int n,a,b,c,d,i;
	double x,y,z;
	cin >> n;
	cin >> a >> b;
	x = (double)b / (double)a;
	for (i =1 ; i <= (n - 1) ; i++)
	{
		cin >> c >> d;
		y = (double)d / (double)c;
		z = y - x;
		if (fabs(z) <= 0.05)
			cout << "same" << endl;
		else
		{
			if (z > 0)
				cout << "better" << endl;
			else
				cout << "worse" << endl;
		}
	}
	cin.get();
    cin.get(); //????
	return 0;
}


int main(){
	int n;
	double e,all;
	int i;
	double xiaoguo;
	cin>>n;
	double E[n+2];
	for(i=1;i<=n;i++){
		cin>>all>>e;
		xiaoguo=e/all;
		E[i]=xiaoguo;
	}
	for(i=2;i<=n;i++){
		if((E[i]-E[1])>0.05){
			cout<<"better"<<endl;
		}
		else if((E[i]-E[1])<-0.05){
			cout<<"worse"<<endl;
		}
		else{
			cout<<"same"<<endl;
		}
	}

}


int main(){
    int n,i,a,b,c,d,e,f,g;
    scanf("%d\n",&n);
    scanf("%d %d",&a,&b);
    e=(b*1000)/a;
    for(i=1;i<n;i++){
        scanf("%d %d",&c,&d);
        f=(d*1000)/c;
        g=f-e;
        if(0-g>50){printf("worse");}
        else if(g>50){printf("better");}
        else{printf("same");}
        printf("\n");
    }
    return 0;
}


int main(){

	int n,x,y;
	double rule,m;
	scanf("%d",&n);
	int *a
		=(int*)malloc(sizeof(int)*n);
    int *b
		=(int*)malloc(sizeof(int)*n);
	int i;
	scanf("%d %d",&x,&y);
	rule=1.0*y/x;
	for(i=0;i<n-1;i++){
		scanf("%d %d",&a[i],&b[i]);

	}
	for(i=0;i<n-1;i++){
	    m=1.0*b[i]/a[i];
		if(m>rule+0.05){printf("better\n");}
		else if(m<rule-0.05){printf("worse\n");}
		else {printf("same\n");}
	}
	return 0;
}


int main()
{
	int n,i;
	int zong[1000];
	int youxiao[1000];
	double c[1000];
	double ji,xin;
	scanf("%d",&n);
	for(i=0;i<n;i++)
	{
		scanf("%d%d",&(zong[i]),&(youxiao[i]));
	}
	ji=youxiao[0]*1.0/zong[0];
	for(i=1;i<n;i++)
	{
		xin=youxiao[i]*1.0/zong[i];
		c[i]=xin-ji;
	}
	for(i=1;i<n;i++)
	{
		if(c[i]>0.05)
		{
			printf("better\n");
		}else
		{
			if(c[i]<(-0.05))
			{
				printf("worse\n");
			}else
			{
				printf("same\n");
			}
		}
	}
	return 0;
}


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


int main()
{
	int i,k,n;
	float xin[20],shuzu[20][2];
	scanf("%d",&n);
	for(i=0;i<n;i++)
	{
		for(k=0;k<2;k++)
		{scanf("%f",&shuzu[i][k]);
		}
	}
	for(i=0;i<n;i++)
		for(k=0;k<2;k++)
		{
			if(k=1)
				xin[i]=shuzu[i][k]/shuzu[i][k-1];
		}
		for(i=1;i<n-1;i++)
		{
				if(xin[i]-xin[0]>0.05)
					printf("better\n");
				else if(xin[0]-xin[i]>0.05)
					printf("worse\n");
				else
					printf("same\n");
		}
		if(xin[n-1]-xin[0]>0.05)
			printf("berrer");
		else if(xin[0]-xin[n-1]>0.05)
			printf("worse");
		else printf("same");

return 0;
}


int main()
{
	int n;
	scanf("%d",&n);
	double jsum,jyx;
	scanf("%lf %lf",&jsum,&jyx);
	double x=jyx/jsum;
	int i;
	double sum[100],yx[100];
	double y[100];
	for(i=0;i<n-1;i++)
	{
		scanf("%lf %lf",&sum[i],&yx[i]);
		y[i]=yx[i]/sum[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,i,x,y;
  float std,t;

  cin>>n;
  cin>>x>>y;
  std=1.0*y/x;
  for(i=1;i<n;i++)
  { cin>>x>>y;
    t=1.0*y/x-std;
    if(t>0.05) cout<<"better";
    else  if(t<-0.05) cout<<"worse";
          else cout<<"same";
    cout<<endl;
  }
  return 0;
}


int main()
{
	int n;
	scanf("%d\n",&n);
	double a,b,c,m;
	scanf("%lf%lf",&a,&b);
	c=b/a;
	struct d{
		double e;
		double f;
		double g;
	}d[100];
	for(int i=0;i<n-1;i++)
	{
		scanf("%lf%lf",&d[i].e,&d[i].f);
	}
	for(int k=0;k<n-1;k++)
	{
		d[k].g=d[k].f/d[k].e;
		m=c-d[k].g;
		if(m>0.05)
		{
			printf("worse\n");
		}
		if(m<(-0.05))
		{
			printf("better\n");
		}
		if(m<=0.05&&m>=-0.05)
		{
			printf("same\n");
		}
	}
	return 0;
}


int main()
{
    int x,y,n,z;
	double i,j,a;
	scanf("%d",&n);
		scanf("%d %d",&x,&y);
		i=(1.0*y)/x;
		for(z=2;z<=n;z++){
			scanf("%d %d",&x,&y);
			j=(1.0*y)/x;
			a=j-i;
				if(a>0.05){
					printf("better\n");
				}
				else{
					if(a<-0.05){
						printf("worse\n");
					}
					else{
						printf("same\n");
					}
				}
		}
	return 0;
}


/*
 * ?????.cpp
 *
 *  Created on: 2012-10-23
 *      Author: ???
 *
 */
int main ()
{
	double a,b;
	double rate1,rate2;
	int n;
	cin>>n;
	cin>>a>>b;
	rate1=b/a;
	for (int i=0;i<n-1;i++)
	{    double c,d;
		 cin>>c>>d;
	     rate2=d/c;
	     if (rate1-rate2<=0.05 && rate2-rate1<=0.05)
	    	 cout<<"same"<<endl;
	     else if (rate1-rate2>0.05)
	    	 cout<<"worse"<<endl;
	     else
	    	 cout<<"better"<<endl;
	}
	return 0;
}


/*
 * qmfx02.cpp
 *
 *  Created on: 2011-1-1
 *      Author: Administrator
 */
int main()
{
	int n;
	cin>>n;
	double a,b,x;
	cin>>a>>b;
	x=b/a;
	while(n>1)
	{
		cin>>a>>b;
		if(b/a-x>0.05)
		{
			cout<<"better"<<endl;
		}
		if(b/a-x<-0.05)
		{
			cout<<"worse"<<endl;
		}
		if(b/a-x>=-0.05&&b/a-x<=0.05)
		{
			cout<<"same"<<endl;
		}
		n--;
	}
	return 0;
}


int main()
{
	int i,n;
	float xa,xb,xc;
	float ya[1000],yb[1000],yc[1000],yd[1000];
	scanf("%d",&n);
	scanf("%f %f",&xa,&xb);
	xc=xb/xa;
	for(i=1;i<n;i++){
		scanf("%f %f",&ya[i],&yb[i]);
		yc[i]=yb[i]/ya[i];
	}
	for(i=1;i<n;i++){
		yd[i]=yc[i]-xc;
		if(yd[i]>0.05){
			printf("better\n");
		}
		else if(yd[i]<-0.05){
			printf("worse\n");
		}
		else{
			printf("same\n");
		}
	}
	return 0;
}


int main()
{
    int n;
    scanf("%d",&n);
    int a[N][2];
    int i,j;
    for(i=0;i<n;i++)
    {
       for(j=0;j<2;j++)
       {
            scanf("%d",&a[i][j]);
       }
    }
    double jwj;
    jwj=(double)a[0][1]/a[0][0];
    double b[N];
    int k=0;
    for(i=1;i<n;i++)
    {
            b[k]=(double)a[i][1]/a[i][0];
          if(b[k]>0.05+jwj)
          {
              printf("better\n");
          }

         else if(b[k]+0.05<jwj)
          {
          printf("worse\n");
          }
                   else{
               printf("same\n");
               }
            k++;

    }
      return 0;
}


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

	return 0;
}


int main(){
	int n,i,x,y;
	scanf("%d",&n);
	scanf("%d%d",&x,&y);
	double z=y*1.0/x;
	double sz[100];
	int zong[100];
	int xiao[100];
	for(i=0;i<n-1;i++){
		scanf("%d%d",&zong[i],&xiao[i]);
		sz[i]=xiao[i]*1.0/zong[i];
	}
	for(i=0;i<n-2;i++){
		if(sz[i]-z>0.05){
			printf("better\n");
		}
		else if(z-sz[i]>0.05){
			printf("worse\n");
		}
		else{
			printf("same\n");
		}
	}
	if(sz[i]-z>0.05){
			printf("better");
		}
		else if(z-sz[i]>0.05){
			printf("worse");
		}
		else{
			printf("same");
		}

	return 0;
}


int main()
{
	int n,i;
	double a,zs,yx;
	double yxl;
	scanf("%d",&n);
	scanf("%lf %lf",&zs,&yx);
	a=(yx/zs)*100;
	for(i=0;i<n-1;i++)
	{
		scanf("%lf %lf",&zs,&yx);
		yxl=(yx/zs)*100;
		if(yxl>=a)
		{
			if((yxl-a)>5)
			{
				printf("better\n");
			}
			else
			{
				printf("same\n");
			}
		}
	else
		{
			if((a-yxl)>5)
			{
				printf("worse\n");
			}
			else
			{
				printf("same\n");
			}
		}
	}
	return 0;
}


int main()
{
    int a,b,n,i;
    double x,y;
    scanf("%d",&n);
    scanf("%d%d",&a,&b);
    x=(double)b/a;
    for(i=1;i<n;i++)
   {
      scanf("%d%d",&a,&b);
      y=(double)b/a;
      if(y-x>0.05)
      {
         printf("better");
         printf("\n");
      }
      else if(x-y>0.05)
     {
         printf("worse");
         printf("\n");
     }
     else
     {
         printf("same");
         printf("\n");
     }
   }
   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,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()
{
  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,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,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 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;
}


//?? 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 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;
	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;
}


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;
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,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()
{
	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,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;
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()
{
	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 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;
}


/*
 * jiweijiuliaofa.cpp
 *
 *  Created on: 2012-10-17
 *      Author: ada
 */
int main ( )
{
	int n; // n???
	double a,b ; // a??? ?b?????
	cin >> n ;
	cin >> a >> b ; //???????????
	double x ,y ; //x??????????
	( double ) (x = b / a) ;
	for ( int i = 0 ; i < n - 1 ; i++) //??????????????~
	{
		cin >> a >> b ;
		( double )(y = b / a) ;
		if ( y > x)
		{
			if ( y - x > 0.05)
				cout << "better" << endl;
			else cout << "same" << endl;
		}
		else if ( x - y > 0.05)
			cout << "worse" << endl;
		     else cout << "same" << endl;

	}
	return 0 ;
}


int main(){
	int n,i;
	double old,xlf;
	scanf("%d",&n);
	int*zs=(int*)malloc(sizeof(int)*n);
	int*yx=(int*)malloc(sizeof(int)*n);

	for(i=0;i<n;i++){
		scanf("%d%d",&zs[i],&yx[i]);
	}
	for(i=0;i<n;i++){
		if(i==0){
			old=(double)yx[i]/zs[i];
		}else{
			xlf=(double)yx[i]/zs[i];
			if(xlf-old>0.05){
				printf("better");
				printf("\n");
			}else if(old-xlf>0.05){
				printf("worse");
				printf("\n");
			}else{
				printf("same");
				printf("\n");
			}

		}
	}
return 0;
}


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


int main()
{
	int n;
	scanf("%d",&n);
	float all[100],fun[100],per[100];
	int i;
	for(i=0;i<n;i++){
		scanf("%f%f",&all[i],&fun[i]);
		per[i]=fun[i]/all[i];
	}
	for(i=1;i<n-1;i++){
		if(per[i]>=per[0]){
			if(per[i]-per[0]>0.05) {printf("better\n");}
			else {printf("same\n");}
		}
		if(per[i]<per[0]){
			if(per[0]-per[i]>0.05) {printf("worse\n");}
			else {printf("same\n");}
		}
	}
	if(per[n-1]>=per[0]){
			if(per[i]-per[0]>0.05) {printf("better");}
			else {printf("same");}
		}
		if(per[n-1]<per[0]){
			if(per[0]-per[i]>0.05) {printf("worse");}
			else {printf("same");}
		}
	return 0;
}


int main(){
int n,i,t=0;
char xm[300][10];
float tw[300];
double z[300];
double yx[300];
double x[300];

scanf("%d",&n);
for(i=0;i<n;i++){
    scanf("%lf",&z[i]);
    scanf("%lf",&yx[i]);
    x[i]=yx[i]/z[i];
}

for(i=1;i<n-1;i++){
    if(x[0]-x[i]>0.05){

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

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

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

}

	  if(x[0]-x[n-1]>0.05){

	   printf("worse");

	}else if(x[n-1]-x[0]>0.05){

	   printf("better");

	}else{

	   printf("same");

	}

return 0;
}


int main()
{
	int N,i;
	cin>>N;
	const int n=N;
	float a[n],b[n],q,p;
	for(i=0;i<=N-1;i=i+1){
		cin>>a[i]>>b[i];
	}
	q=(b[0]/a[0]);
	for(i=1;i<=N-1;i=i+1){
		p=(b[i]/a[i]);
		if(p-q>0.05){cout<<"better"<<endl;}
		else if(q-p>0.05){cout<<"worse"<<endl;}
		else{cout<<"same"<<endl;}
	}
	return 0;

}


int main (){
    int n,i,sz[LEN],szz[LEN];
    float s[LEN],b;
    scanf("%d",&n);
    for(i=0;i<n;i++){
                     scanf("%d%d",&szz[i],&sz[i]);
                     s[i]=1.0*sz[i]/szz[i];
                     }
                     for(i=1;i<n;i++){
                                      b=s[i]-s[0];
                                      if(b>0.05){
                                      printf("better\n");}
                                      else if(b<-0.05){
                                      printf("worse\n");}
                                      else{
                                      printf("same\n");}
                                      }

    return 0;
}


int main()
{
	int n,i;
	float a,b,e,f;
	scanf("%d",&n);
	scanf("%d%d",&a,&b);
	e=b/a;
	for(i=1;i<n;i++)
	{
		scanf("%d%d",&a,&b);
		f=b/a;
		if((f-e)>0.05)
			printf("better\n");
		else if((e-f)>0.05)
			printf("worse\n");
		else
			printf("same\n");
	}
	return 0;
}


int main()
{
	int i,n,zs,yx;
	double x,y,cha;
	scanf("%d",&n);
	for(i=0;i<n;i++)
	{
		scanf("%d%d",&zs,&yx);
		if(i==0)
		{
			x=100.0*yx/zs;
		}
		else
		{
			y=100.0*yx/zs;
			cha=x-y;
			if(cha>5)
			{
				printf("worse\n");
			}
			else if(cha<-5)
			{
				printf("better\n");
			}
			else
			{
				printf("same\n");
			}
		}
	}

	return 0;
}


struct jiegou
{
       double renshu;
       double youxiao;
       };
int main()
{
    int n;
    scanf("%d",&n);
    struct jiegou abc[20];
    int i=0;
    for(i=0;i<n;i++){
                     scanf("%lf%lf",&abc[i].renshu,&abc[i].youxiao);
                     }

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

                                          return 0;
                                          }


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


int main()
{
	int n , i ;
	double y , a , b , a1 , b1;

	cin >> n >> a >> b;

	for (i = 1; i <= n - 1; i ++)
	{
		cin >> a1 >> b1;

		y = b1 / a1 - b / a;

		if (y > 0.05)
			cout << "better" << endl;

		else if (y < -0.05)
			cout << "worse" << endl;

		else
			cout << "same" << endl;
	}
	return 0;
}


int main()
{
	int n, i;
	float k, p, q;
	scanf("%d%f%f",&n, &p, &q);
	k=q/p;
	for(i=0;i<n-1;i++)
	{
		float a, b;
		scanf("%f%f",&a, &b);
		if(b/a-k>0.05) printf("better\n");
		else if(k-b/a>0.05) printf("worse\n");
		else printf("same\n");
	}
	return 0;
}


int main(){
	int n,i;
	scanf("%d",&n);
    int all[100],health[100];
	double rate[100];
	for(i=0;i<n;i++){
		scanf("%d %d",&all[i],&health[i]);
		rate[i]=1.0*health[i]/all[i];
	}
    for(i=1;i<n-1;i++){
		if(rate[i]>rate[0]+0.05){
			printf("better\n");
		}else if(rate[i]<rate[0]-0.05){
	        printf("worse\n");
		}else{
            printf("same\n");
		}
	}
        if(rate[n-1]>rate[0]+0.05){
			printf("better");
		}else if(rate[n-1]<rate[0]-0.05){
	        printf("worse");
		}else{
            printf("same");
		}

	return 0;
}


int main(){
	int n,a,b,s,l,i;
	double c;
	scanf("%d%d%d",&n,&a,&b);
	c=1.0*b/a;
    for(i=0;i<n-1;i++){
		scanf("%d%d",&s,&l);
		double f=1.0*l/s;
		if(f-c>0.05){
			printf("better\n");
		}else if(f-c>-0.05){
			printf("same\n");
		}else{
			printf("worse\n");
		}
	}
	return 0;
}


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


struct way
{
	double sum;
	double effect;
	double rate;
} wine, improve[100];
void compare(double a,double b)
{
	if(fabs(a-b)<0.05)
	{
		cout<<"same"<<endl;
	}
	else if(a>b)
	{
		cout<<"worse"<<endl;
	}
	else
	{
		cout<<"better"<<endl;
	}
}
int main()
{
	int n,i;
	cin>>n;
	cin>>wine.sum>>wine.effect;
	wine.rate=wine.effect/wine.sum;
	for(i=0;i<n-1;i++)
	{
		cin>>improve[i].sum>>improve[i].effect;
		improve[i].rate=improve[i].effect/improve[i].sum;
		//cout<<improve[i].sum<<improve[i].effect<<improve[i].rate;
	}
	for(i=0;i<n-1;i++)
		compare(wine.rate,improve[i].rate);
	return 0;
}


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


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

	return 0;
}


int main()
{
	double n,a,b,c,d,m;
	scanf("%lf%lf%lf\n",&n,&a,&b);
	m=b/a;
	while(n>1){
		scanf("%lf%lf\n",&c,&d);
		a=m-d/c;
		if(a>0.05)
			printf("worse\n");
		if(a<-0.05)
			printf("better\n");
		if(a<=0.05&&a>=-0.05)
			printf("same\n");
		n=n-1;
	}
	return 0;
}


int main()
{
	int n,a1,a2,b1,b2;
	scanf("%d%d%d",&n,&a1,&a2);
	float x,y;
	x=(float)a2/a1;
	for(int i=0;i<n-1;i++){
		scanf("%d%d",&b1,&b2);
		y=(float)b2/b1;
		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 i,x,y;
  double a,b;
  scanf("%d%d",&x,&y);
    a=1.0*y/x;
  for(i=2;i<=n;i++){
    scanf("%d%d",&x,&y);
	b=1.0*y/x;
	  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,i,x,y;
double b,c;
struct s
 {
  int x;
  int y;
 };
struct s sz[100];
scanf("%d",&n);
for(i=0;i<n;i++)
{
	scanf("%d%d",&x,&y);
	sz[i].x=x;
	sz[i].y=y;
}
b=sz[0].y *1.0 /sz[0].x;
for(i=1;i<n;i++)
{
    c=sz[i].y *1.0 /sz[i].x;
    if (c-b>0.05)
	{
        printf ("better\n");
	}
    else if (b-c>0.05)
	{
        printf("worse\n");
	}
	else
	{
		printf("same\n");
	}

}
return 0;
}


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


int main(){
	int n,i,j,sz[1000],sx[1000];
	scanf("%d",&n);
	double sum;
	for(i=0;i<n;i++){
		scanf("%d %d",&sz[i],&sx[i]);

	}
	for(j=1;j<n;j++){
		if(((double)sx[j]/(double)sz[j]-(double)sx[0]/(double)sz[0])>0.05){
			printf("better\n");
		}
		else if(((double)sx[0]/(double)sz[0]-(double)sx[j]/(double)sz[j])>0.05){
			printf("worse\n");
		}
		else{
			printf("same\n");
		}
	}
	return 0;
}


int main(){
    int n,i,j,k;
    int zong[100],you[100];
    scanf("%d\n",&n);
    for(i=0;i<n;i++){
        scanf("%d %d",&zong[i],&you[i]);
        if(i>=1){
            if(you[i]*1.0/zong[i]-you[0]*1.0/zong[0]>0.05){
                printf("better\n");
            }else if(you[0]*1.0/zong[0]-you[i]*1.0/zong[i]>0.05){
                printf("worse\n");
            }else {
                printf("same\n");
            }
        }
    }

    return 0;
}


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


struct patient
{
	int all;
	int part;
	double cent;
	char s[7];
}p[M];
int main()
{
	int n,i;
	scanf("%d",&n);
	for(i=0;i<n;i++)
	{
		scanf("%d%d",&p[i].all,&p[i].part);
		p[i].cent=(double)p[i].part/(double)p[i].all;
	}
	for(i=1;i<n;i++)
	{
		if((p[i].cent-p[0].cent)>0.05)
			strcpy(p[i].s,"better");
		else if((p[0].cent-p[i].cent)>0.05)
			strcpy(p[i].s,"worse");
		else
			strcpy(p[i].s,"same");
	}
	for(i=1;i<n;i++)
		printf("%s\n",p[i].s);
	return 0;
}


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


int main(){
	double n,i;
	scanf("%lf",&n);
	double x;
	double m,p;
	scanf("%lf %lf",&m,&p);
	x=p/m;
	for(i=0;i<n-1;i++){
		double a,b;
		scanf("%lf %lf",&a,&b);
        double y;
		y=b/a;
		if(y-x>0.05){
			printf("better\n");
		}else if(x-y>0.05){
			printf("worse\n");
		}else if((y-x<=0.05)&&(y-x>=-0.05)){
			printf("same\n");
		}
	}
	return 0;
}


void judge(double,double);//??
double standard;//???????
const double m=0.05;//??
int main()
{
  int n,i;
  double sum,useful;
  cin>>n;
  cin>>sum>>useful;
  standard=useful/sum;
  for(i=2;i<=n;i++)
  {
    cin>>sum>>useful;
	judge(sum,useful);
  }
  return 0;
}
void judge(double sum,double useful)
{
  double rate;
  rate=useful/sum;
  if(abs(rate-standard)<=m)
	  cout<<"same"<<endl;
  else if(rate-standard>m)
	  cout<<"better"<<endl;
  else
	  cout<<"worse"<<endl;
}


struct p
{
    char name[100];
    float t;
    int judge;
};
int main()
{
    int m,x,y;
    scanf("%d",&m);
    scanf("%d %d",&x,&y);
    double c,d;
    c=(double)y/x;
    int a1,a2;
    for(int i=0;i<=m-2;i++)
    {
        scanf("%d %d",&a1,&a2);
        d=(double)a2/a1;
        if(c-d>0.05)
        {
            printf("worse\n");
        }
        else if(d-c>0.05)
        {
            printf("better\n");
        }
        else
        {
            printf("same\n");
        }
    }
}


main()
{
      int i,j,m,n,g;
      double k,k1,k2,temp;
      scanf("%d",&n);
      scanf("%d %d",&i,&j);
      k=1.0*j/i;
      k1=k+0.05;
      k2=k-0.05;
      for(g=1;g<n;g++)
      {
                      scanf("%d %d",&i,&j);
                      temp=1.0*j/i;
                      if(temp<k2) printf("worse\n");
                      else if(temp>k1) printf("better\n");
                      else printf("same\n");
      }

}


int main(){
	int sz[100],sz1[100],n;
	float sz2[100];
	scanf("%d",&n);

	int x,y;
	float z;
	scanf("%d%d",&x,&y);
	z = (float)y/x;

	int i=0;
	while(i<n-1){
		scanf("%d%d",&(sz[i]),&(sz1[i]));
		sz2[i]=(float)(sz1[i])/(sz[i]);
		i++;
	}

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

	return 0;

}


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,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 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;
}