import java.util.Scanner; public class No441 { public static void main(String[] args) { Scanner s = new Scanner(System.in); String a = s.next(); String b = s.next(); int aa = getAbstracted(a); int bb = getAbstracted(b); String out = aa * bb > aa + bb ? "P" : aa + bb > aa * bb ? "s" : "E"; System.out.println(out); } private static int getAbstracted(String str) { if (str.length() > 2) { return 3; } else { return Integer.parseInt(str); } } }