#include <bits/stdc++.h>
using namespace std;
int main(int argc, char const *argv[]) {
  long long val;
  cin >> val;
  if (val & 1)
    cout << 1 << endl;
  else
    cout << 2 << endl;
  return 0;
}
