A, B = map(int, input().split())

if A == 0 and B == 0 or A == 2 and B == 2:
	print('E')
elif A < 2 or B < 2:
	print('S')
else:
	print('P')