import sys read = sys.stdin.buffer.read readline = sys.stdin.buffer.readline readlines = sys.stdin.buffer.readlines N = int(read()) answer = 'Petr' if N >= 2 else 'square1001' print(answer)