#include using namespace std; int main(){ int A,B,H,W; cin >> A >> B; cin >> H >> W; long long nonrotate = min(B * B * H * H,A * A * W * W); long long rotate = min(A * A * H * H,B * B * W * W); if(nonrotate > rotate){ cout << "Non-rotate" << endl; } else if(rotate > nonrotate){ cout << "Rotate" << endl; } else{ cout << "Same" << endl; } return 0; }