#include #include #include #include using namespace std; using ll = long long; #define rep(i,n) for(int i = 0; i < (int)(n); i++) #define all(c) begin(c), end(c) int main() { string A, B; cin >> A >> B; if (A == "0" || B == "0" || A == "1" || B == "1") { cout << "S" << endl; return 0; } if (A == "2" && B == "2") { cout << "E" << endl; return 0; } cout << "P" << endl; return 0; }