#include using namespace std; int main() { int N; cin >> N; int x = 1; while (x <= N) { x <<= 1; if (x == N) { cout << 1 << endl; return 0; } } if (N % 2 == 0) { cout << 3 << endl; } else { cout << 2 << endl; } }