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