#include <bits/stdc++.h>
using namespace std;
const long double obs = 1.000000011;
unsigned long long dp[1000 + 9][1000 + 9];
unsigned long long rec(unsigned long long i, unsigned long long j) {
  if (i == j || i <= 0 || j <= 0) return 1;
  if (~dp[i][j]) return dp[i][j];
  return dp[i][j] = rec(i - 1, j) + rec(i - 1, j - 1);
}
int main() {
  unsigned long long n;
  while (cin >> n) {
    cout << (!(n & 1) + 1);
  }
  return 0;
}
