#include using namespace std; void yon() { cout << 4 << endl; exit(0); } void go() { cout << 5 << endl; exit(0); } int main() { int N, M; cin >> N >> M; if(N == 9) yon(); if(N & 1) go(); throw 0; }