import java.util.Scanner; public class Ex1 { public static void main(String[] args) { Scanner scan = new Scanner(System.in); double a = scan.nextDouble(); double b = scan.nextDouble(); if(a+b > a*b){ System.out.println("S"); }else if(a+b < a*b){ System.out.println("P"); }else{ System.out.println("E"); } } }