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

发表评论