#include using namespace std; int main() { string c1,c2,c3; cin >> c1 >> c2 >> c3; if(c1 == "?"){ cout << "4" << endl; }else if(c2 == "?"){ cout << "14" << endl; }else if(c3 == "?"){ cout << "4" << endl; } }