// macros #include #include #include #include #include #include using namespace std; typedef long long ll; typedef pair pii; #define LLINF 1000000000000000000LL #define FOR(i,a,b) for(int i=(int)(a);i<(int)(b);i++) #define debug(a) cout << "L(" << __LINE__ << "):" << #a << ":" << a << endl; // problems limits #define MAX_N 100000 // Variables string A,B; // problems input void input() { cin >> A; cin >> B; } // problems main void solve() { string s="S",p="P",e="E"; string ans="P"; if(A=="0") { if(B=="0") { ans=e; } else { ans=s; } } else if (B=="0") { ans=s; } else if (A=="1" || B=="1") { ans=s; } else if (A=="2" && B=="2") { ans=e; } cout << ans << endl; } int main() { ios::sync_with_stdio(false); input(); solve(); }