#include <bits/stdc++.h>
using namespace std;
void logf(istream_iterator<string> it) {}
template <typename T, typename... Args>
void logf(istream_iterator<string> it, T a, Args... args) {
  cout << *it << "=" << a << " ";
  logf(++it, args...);
}
const double PI = acos(-1);
void solve() {
  long long n;
  cin >> n;
  ;
  if (n % 2 == 1)
    cout << 1 << endl;
  else
    cout << 2 << endl;
}
int main() {
  cin.tie(nullptr);
  std::ios::sync_with_stdio(false);
  solve();
}
