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