#include <bits/stdc++.h>
using namespace std;
map<long long int, long long int> mp, mk;
set<long long int> s1, s2;
vector<int> v, w;
string s = "", qq = "", ss = "", pp = "", p, q;
char ch;
long long int m, n, i, j, l, r, x, t, y, u, g, h, mn, mx, d, z, c, f, e, k;
int main() {
  cin >> n;
  if (n % 2)
    cout << 1;
  else
    cout << 2;
}
