#include using namespace std; int main() { long long int 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; }