// No.441 和か積 // https://yukicoder.me/problems/no/441 // #include using namespace std; char solve(double A, double B); int main() { std::cin.tie(nullptr); std::ios::sync_with_stdio(false); double A, B; cin >> A >> B; char ans = solve(A, B); cout << ans << endl; } char solve(double A, double B) { if (A == 0.0) { if (B == 0.0) return 'E'; else return 'S'; } else { if (B == 0.0) return 'S'; else { if (A == 2.0 && B == 2.0) return 'E'; else if (A == 1.0 || B == 1.0) return 'S'; return 'P'; } } }