N, A, B = map(int, input().split()) N -= 1 if N < B: print("sepa") exit() def is_win(n): if n - A <= 0 and n - B <= 0: return False if n < B: return ((n + A - 1) // A) % 2 == 1 return not is_win(n - A) or not is_win(n - B) if is_win(N % (A + B)): print("ryota") exit() if is_win((N - 2 * A) % (A + B)) and is_win((N - 2 * B) % (A + B)): print("ryota") exit() print("sepa")