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