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