#include using namespace std; using ll = long long; #define rep(i, n) for(int i = 0; i < n; i++) int main() { int a, b, h, w; cin >> a >> b >> h >> w; double rh = double(h) / a; double s1 = rh * a * rh * b; double rw = double(w) / b; double s2 = rw * a * rw * b; double s = min(s1, s2); swap(a, b); rh = double(h) / a; s1 = rh * a * rh * b; rw = double(w) / b; s2 = rw * a * rw * b; double sr = min(s1, s2); string ans = "Same"; if(s > sr) ans = "Non-rotating"; if(s < sr) ans = "Rotating"; cout << ans << endl; }