#include using namespace std; int main() { int a, b, p, s; cin >> a >> b; p = a * b; s = a + b; if (p == s) { return 'E'; } else if (p > s) { return 'P'; } else { return 'S'; } return 0; }