import java.util.Scanner; public class Main { public static void main(String[] args) throws Exception { Scanner sc = new Scanner(System.in); long a = sc.nextInt(); long b = sc.nextInt(); long h = sc.nextInt(); long w = sc.nextInt(); sc.close(); if (h * b <= w * a) { if (h * a <= w * b) { if (a == b) { System.out.println("Same"); } else if (b > a) { System.out.println("Non-rotating"); } else { System.out.println("Rotating"); } } else { if (h == w) { System.out.println("Same"); } else if (h > w) { System.out.println("Non-rotating"); } else { System.out.println("Rotating"); } } } else { if (h * a <= w * b) { if (h == w) { System.out.println("Same"); } else if (w > h) { System.out.println("Non-rotating"); } else { System.out.println("Rotating"); } } else { if (a == b) { System.out.println("Same"); } else if (a > b) { System.out.println("Non-rotating"); } else { System.out.println("Rotating"); } } } } }