#include <bits/stdc++.h>
using namespace std;
int main() {
  long long a, b, c = 0, i, j, t, k, lie, m, n, o, x, y, z, ar[200010], sm = 0,
                  s = 0;
  scanf("%lld", &n);
  if (n & 1)
    cout << 1 << "\n";
  else
    cout << 2 << "\n";
  return 0;
}
