#include #include #include #include using namespace std; int main(void) { char c[3]; for(int i = 0; i < 3; i++) cin >> c[i]; if(c[0] == '?') { if(c[1] > c[2]) cout << 1; else cout << 4; } else if(c[1] == '?') { cout << 14; } else if(c[2] == '?') { if(c[0] > c[1]) cout << 4; else cout << 1; } return 0; }