def solve(n): if n % 2 == 0: return "ryota" else: return "sepa" T = int(input().strip()) for _ in range(T): N = int(input().strip()) print(solve(N))