import java.io.IOException; import java.util.Scanner; public class Main{ public static void main (String[] args) throws IOException{ Scanner sc = new Scanner(System.in); double numA = sc.nextInt(); double numB = sc.nextInt(); double sum = numA + numB; double pro = numA*numB; if(sum==pro){ System.out.println("E"); }else if(sum>pro){ System.out.println("S"); }else{ System.out.println("P"); } } }