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