#include <bits/stdc++.h>
using namespace std;
unsigned long long int n;
int main() {
  ios_base::sync_with_stdio(false);
  cin >> n;
  if (n % 2 == 0) {
    cout << 2;
  } else {
    cout << 1;
  }
}
