import java.math.BigInteger; import java.util.Scanner; public class atc { public static void main(String[] args) { Scanner sc=new Scanner(System.in); BigInteger a=new BigInteger(sc.next()); BigInteger b=new BigInteger(sc.next()); BigInteger sum=a.add(b); BigInteger pro=a.multiply(b); int i = sum.compareTo(pro); if(i==0)System.out.println("E"); if(i==1)System.out.println("S"); if(i==-1)System.out.println("P"); } }