#include <bits/stdc++.h>
using namespace std;
const unsigned long long O = 2e9;
const double E = 1e-9;
const double pi = 3.1415926536;
int DX[] = {1, -1, 0, 0};
int DY[] = {0, 0, 1, -1};
int main() {
  long long n;
  cin >> n;
  if (n & 1)
    cout << 1 << endl;
  else
    cout << 2 << endl;
}
