import java.util.Scanner; public class Wakaseki { public static void main(String[] args) { Scanner s = new Scanner(System.in); String left = s.next(),right = s.next(); //System.out.println(left + " " + right); s.close(); if(left.equals("0") && right.equals("0")){ System.out.println("E"); }else if(left.equals("0") || right.equals("0")){ System.out.println("S"); }else if(left.equals("1") || right.equals("1")){ System.out.println("S"); }else if(left.equals("2") && right.equals("2")){ System.out.println("E"); }else{ System.out.println("P"); } } }