#include<iostream> using namespace std; int ans[10001]; int main() { int n; float a,b; cin>>n; float x,y; for(int i=1;i<=n;i++){ cin>>a>>b; if(i==1) } { x=(b/a)*100; continue; } else y=(b/a)*100; if((y-x)>5)ans[i]=1; 20 else if((x-y)>5)ans[i]=-1; 21 else ans[i]=0; 22 for(int i=2;i<=n;i++) { if(ans[i]==1) cout<<"better"<<endl; else if(ans[i]==-1) cout<<"worse"<<endl; else if(ans[i]==0) cout<<"same"<<endl; } return 0; }