a,b=map(int,input().split()) s=a+b p=a*b B="E" if s!=p: B="P" if s