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