N, A, B = map(int, input().split()) N -= 2 N %= (A+B) if N < B: print("sepa" if N//A%2 == 1 else "ryota") else: print("sepa")