from sys import stdin input = stdin.readline for _ in range(int(input())): H, W = map(int, input().split()) print("sepa" if (H+W)%2 == 1 else "ryota")