#include using namespace std; int main(){ ios::sync_with_stdio(false); cin.tie(0); string a, b; cin >> a >> b; if(b > a) { swap(a, b); } if(a == "2" && b == "2") { cout << "E" << endl; return 0; } if(b == "0") { cout << "S" << endl; return 0; } if(b == "1") { cout << "S" << endl; return 0; } cout << "P" << endl; return 0; }