// No.632 穴埋め門松列 // https://yukicoder.me/problems/no/632 // #include using namespace std; int main() { char c1, c2, c3; cin >> c1 >> c2 >> c3; if (c1 == '3') { if (c2 == '2') { cout << 4 << endl; } else { cout << 14 << endl; } } else if (c1 == '2') { if (c2 == '3') { cout << 1 << endl; } else { cout << 14 << endl; } } else { if (c2 == '2') { cout << 4 << endl; } else { cout << 1 << endl; } } }