#include using namespace std; typedef long long ll; typedef pair P; #define REP(i,n) for(ll i=0;i> A >> B >> H >> W; if(A*W>=B*H && B*W>=A*H){ if(A>B) cout << "Rotating" << endl; else if(A==B) cout << "Same" << endl; else cout << "Non-rotating" << endl; } else if(A*W>=B*H && B*WW) cout << "Non-rotating" << endl; else if(H==W) cout << "Same" << endl; else cout << "Rotating" << endl; } else if(A*W=A*H){ if(H>W) cout << "Rotating" << endl; else if(H==W) cout << "Same" << endl; else cout << "Non-rotating" << endl; } else if(A*WB) cout << "Non-rotating" << endl; else if(A==B) cout << "Same" << endl; else cout << "Rotating" << endl; } return 0; }