a,b = map(int, input().split()) s = a + b p = a * b c = 'E' if s > p: c = 'S' elif s < p: c = 'P' print(c)