#include <bits/stdc++.h>
using namespace std;
const long long mod = 1e9 + 7;
const int N = 2e5 + 4;
int main() {
  int n;
  scanf("%d", &n);
  if (n != 2)
    cout << 1;
  else
    cout << 2;
  return 0;
}
