import java.util.*; import java.math.BigInteger; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String str = ""; String str3 = sc.next(); String str2 = sc.next(); BigInteger big1 = new BigInteger( str3 ); BigInteger big2 = new BigInteger( str2 ); BigInteger big3 = new BigInteger( str3 ); BigInteger big4 = new BigInteger( str2 ); BigInteger big5 = big1.add(big2); BigInteger big6 = big3.multiply(big4); if( big5.compareTo(big6) == 0 ) { str += "E"; } else if( big5.compareTo(big6) > 0 ) { str += "S"; } else if( big5.compareTo(big6) < 0 ) { str += "P"; } System.out.print( str ); System.out.println( ); } }