#include <bits/stdc++.h>
using namespace std;
int main() {
  long long int i, j, k, to = 1, ans = 0, n = 1;
  cin >> k;
  if (k % 2 == 0)
    cout << 2 << endl;
  else
    cout << 1 << endl;
  return 0;
}
