#include using namespace std; template T gcd(T x, T y) { if (y == 0) return x; return gcd(y, x % y); } template T lcm(T x, T y) { if (x == 0 || y == 0) return 0; return x / gcd(x, y) * y; } int main() { char c1, c2, c3; cin >> c1 >> c2 >> c3; if (c2 == '?') cout << 14 << endl; else if (c2 == '3') cout << 1 << endl; else cout << 4 << endl; }