#include <bits/stdc++.h>
using namespace std;
long long arr[1000];
int main() {
  unsigned long long a, c = 8, cnt = 1;
  cin >> a;
  if (a % 2 == 0)
    cout << 2 << endl;
  else
    cout << 1 << endl;
}
