A,B=map(int,input().split()) H,W=map(int,input().split()) if (A-B)*(H-W)==0: ans="Same" elif (A-B)*(H-W)<0: ans="Rotating" else: ans="Non-rotating" print(ans)