#include using namespace std; void solve() { string c1, c2, c3, ans; cin >> c1 >> c2 >> c3; if (c2 == "?") ans = "14"; if (c2 == "2") ans = "4"; if (c2 == "3") ans = "1"; cout << ans << endl; } int main() { cin.tie(0); ios::sync_with_stdio(false); solve(); }