A,B=(float(i) for i in input(). split ()) if A==1 and B==1: print (S) elif A==1 or B==1: print (E) else: print (P)