using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace yuki441 { class Program { static void Main(string[] args) { var t = Console.ReadLine().Split(); if (t[0] == "0" || t[1] == "0") { Console.WriteLine("S"); } else if (t[0] == "1" || t[1] == "1") { Console.WriteLine("S"); } else if (t[0] == "2" && t[1] == "2") { Console.WriteLine("E"); } else { Console.WriteLine("P"); } } } }