#include #include #include #include #include #include #include #include #include #include using namespace std; int main(){ string s1, s2, s3; cin >> s1 >> s2 >> s3; if (s1 == "?"){ if (s2 == "3") cout << 1 << endl; else cout << 4 << endl; } else if (s3 == "?"){ if (s1 == "2") cout << 1 << endl; else cout << 4 << endl; } else cout << 14 << endl; }