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