n, a, b = map(lambda s_: int(s_), input().split()) def judge(i): return (((i + a - 1) % (a + b)) % (a * 2)) >= a cond = not judge(n - 1) print("sepa" if cond else "ryota")