A,B=map(int,input().split()) H,W=map(int,input().split()) nr=min(H/A*B,W/B*A) r=min(H/B*A,W/A*B) if nr>r:print("Non-rotating") elif nr