import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String A = sc.next(); String B = sc.next(); if("0".equals(A) && "0".equals(B) ){ System.out.println("E"); }else if("0".equals(A) || "0".equals(B) ){ System.out.println("S"); }else if( "1".equals(A) || "1".equals(B) ){ System.out.println("S"); }else if( "2".equals(A) && "2".equals(B) ){ System.out.println("E"); }else{ System.out.println("P"); } } }