import java.util.Scanner; import java.math.BigInteger; class map{ public static void main(String[] args){ Scanner sc=new Scanner(System.in); BigInteger a=sc.nextBigInteger();; BigInteger b=sc.nextBigInteger(); BigInteger c=a.add(b); BigInteger d=a.multiply(b); if(c.compareTo(d)>0){ System.out.println('S'); }else if(d.compareTo(c)>0){ System.out.println('P'); }else{ System.out.println('E'); } } }