#include using namespace std; #define int long long #define pb emplace_back #define sz(v) (int)(v.size()) #define all(v) (v.begin(),v.end()) signed main(){ ios::sync_with_stdio(false); cin.tie(0); cout.tie(0); // freopen("input.txt","r",stdin); // freopen("output.txt","w",stdout); int a,b; cin >> a >> b; if(a == 0 || b == 0) cout << "S"; else if(a == 2 && b == 2) cout << "E"; else if(a == 1 || b == 1) cout << "S"; else cout << "P"; return 0; }