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