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