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