T = int(input()) for _ in range(T): H,W = map(int,input().split()) print("sepa" if (H+W) % 2 else "ryota")