using System; using System.Collections.Generic; using System.Linq; namespace yukicodeX { public class ProgramX { public static string Solver(System.IO.TextReader reader) { var a = reader.ReadLine().Split().ToList().ConvertAll( double.Parse ); var sum = a[ 0 ] + a[ 1 ]; var product = a[ 0 ] * a[ 1 ]; return sum == product ? "E" : sum > product ? "S" : "P"; } private static void Main() { Console.WriteLine( Solver( Console.In ) ); } } }