#include <bits/stdc++.h>
using namespace std;
using ll = long long;
const int MOD = 1e9 + 7;
const int N = 3e5 + 5;
const ll INF = 9e18;
const int M = 501;
void solve() {
  ll n;
  cin >> n;
  cout << 2 - n % 2;
}
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  int t = 1;
  while (t--) solve();
}
