#include using namespace std; int main(){ char a,b,c;cin>>a>>b>>c; if(a == '?'){ cout << 14 << endl; }else if(a == '3'){ cout << 1 << endl; }else{ cout << 4 << endl; } }