#include using namespace std; int main(){ ios::sync_with_stdio(false); cin.tie(0); char a, b, c; cin >> a >> b >> c; if(b == '?') cout << 14 << endl; else if(b == '3') cout << 1 << endl; else cout << 4 << endl; return 0; }