import sys input = sys.stdin.readline sys.setrecursionlimit(10**7) from functools import lru_cache T = int(input()) for _ in range(T): N = int(input()) @lru_cache(maxsize=None) def f(x): v = 0 if 2 * x < N: v |= 1 - f(2 * x) if 3 * x < N: v |= 1 - f(3 * x) if 5 * x < N: v |= 1 - f(5 * x) if 7 * x < N: v |= 1 - f(7 * x) return v print("sepa") if f(1) else print("ryota")