using System; namespace yukicoder { class Program { static void Main(string[] args) { string[] s = Console.ReadLine().Split(); Array.Sort(s); string a = s[0]; string b = s[1]; if (a == "0") { if (b == "0") { Console.WriteLine("E"); return; } else { Console.WriteLine("S"); return; } } if (a == "1") { Console.WriteLine("S"); return; } if (a == "2") { if (b == "2") { Console.WriteLine("E"); return; } } Console.WriteLine("P"); } } }