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