#include <bits/stdc++.h>
using namespace std;
unsigned long long bp(long long n) {
  unsigned long long count = 0;
  while (n) {
    n &= (n - 1);
    count++;
  }
  return count;
}
int32_t main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  long long n;
  cin >> n;
  if (n & 1)
    cout << 1;
  else
    cout << 2;
}
