import java.util.Scanner; class map{ public static void main(String[] args){ Scanner sc=new Scanner(System.in); double a=sc.nextDouble(); double b=sc.nextDouble(); if(a+b > a*b){ System.out.println('S'); }else if(a+b < a*b){ System.out.println('P'); }else{ System.out.println('E'); } } }