#include "bits/stdc++.h" using namespace std; #define print(x) cout< PI; typedef pair V; typedef vector VE; const ll mod = 1000000007; //10^9+7 int main(){ string s[3]; string t = "14"; REP(i, 3){cin >> s[i];} if(s[1] == "?"){print(t);} else if(s[1] == "2"){print("4");} else if(s[1] == "3"){print("1");} }