for _ in range(int(input())): h, w = list(map(int, input().split())) if h % 2 == w % 2: print("ryota") else: print("sepa")