N=map(int,open(0).read().split()) A,B,C,D=N S,X,Y=A*B,max(C/A,D/B),max(D/A,C/B) print("Same" if X==Y else "Rotating" if X>Y else "Non-rotating")