#include #include #include #include #include #include #include #include #include #include #include using namespace std; typedef long long ll; #define rep(i, n) for(int i = 0; i < (n); i++) template using vi = vector; template using vii = vector>; template using viii = vector>; template using viiii = vector>; using P = pair; void chmin(ll & x, ll y) { x = min(x, y); } void chmax(ll& x, ll y) { x = max(x, y); } int main() { ll a, b, h, w; cin >> a >> b >> h >> w; ll S0 = min(h * h * b * b, w * w * a * a); swap(a, b); ll S1 = min(h * h * b * b, w * w * a * a); if (S0 == S1) cout << "Same" << endl; else if (S0 > S1) cout << "Non-rotating" << endl; else cout << "Rotating" << endl; return 0; }