#include #define PI 3.14159265359 using namespace std; int main() { string A, B; cin >> A >> B; char ans = 'P'; if (A == "0" && B == "0") ans = 'E'; if (A == "2" && B == "2") ans = 'E'; if (A == "1" || B == "1") ans = 'S'; if (A == "0" || B == "0") ans = 'S'; cout << ans << endl; }