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