#include using namespace std; /////////////////// メイン /////////////////// int main () { //////////////////// 入力 //////////////////// string a, b; cin >> a >> b; //////////////// 出力変数定義 //////////////// char result = 'P'; //////////////////// 処理 //////////////////// if (a=="0"&&b=="0") result = 'E'; else if (a=="2"&&b=="2") result = 'E'; else if (a=="0") result = 'S'; else if (a=="1") result = 'S'; else if (b=="0") result = 'S'; else if (b=="1") result = 'S'; //////////////////// 出力 //////////////////// cout << result << endl; //////////////////// 終了 //////////////////// return 0; }