#include // #include using namespace std; // using bigint = boost::multiprecision::cpp_int; template using min_priority_queue = priority_queue,greater>; random_device seed_gen; mt19937 engine(seed_gen()); int64_t get_time_ns(){ struct::timespec t; clock_gettime(CLOCK_MONOTONIC, &t); return t.tv_sec * int64_t(1'000'000'000) + t.tv_nsec; } int f(string s) { if(s.size() >= 2) return 10; else return stoi(s); } int main() { string a, b; cin >> a >> b; int x = f(a); int y = f(b); if(x > y) swap(x, y); string ans; if(x == 0) { if(y == 0) ans = "E"; else ans = "S"; } else if(x == 1) { ans = "S"; } else { if(y == 2) ans = "E"; else ans = "P"; } cout << ans << endl; return 0; }