#include using namespace std; using ll = long long; using ld = long double; #ifdef LOCAL #include #else #define debug(...) void(0) #endif int main() { ios::sync_with_stdio(false); cin.tie(nullptr); auto calc = [](ll a, ll b, ll h, ll w) { ll ret1 = h * b * h * b; ll ret2 = w * a * w * a; return min(ret1, ret2); }; ll a, b, h, w; cin >> a >> b >> h >> w; ll t = calc(a, b, h, w), s = calc(b, a, h, w); if(t == s) { cout << "Same" << endl; }else if(t > s) { cout << "Non-rotating" << endl; }else { cout << "Rotating" << endl; } }