-- yukicoder My Practice -- author: Leonardone @ NEETSDKASU main = getLine >>= putStrLn . solve . map read . words solve [a,b] = let s = a + b p = a * b in case compare s p of LT -> "P" EQ -> "E" GT -> "S"