#pragma GCC optimize("O3") #ifdef LOCAL #include "algo/debug_ver3.hpp" #else #define debug(...) #define debugArr(...) #endif #include using namespace std; int main() { cin.tie(nullptr); ios::sync_with_stdio(false); long long a, b, h, w; cin >> a >> b >> h >> w; long long x = min(h * h * b * b, w * w * a * a); long long y = min(h * h * a * a, w * w * b * b); string ans; if (x > y) { ans = "Non-rotating"; } else if (x < y) { ans = "Rotating"; } else { ans = "Same"; } cout << ans << '\n'; }