#include <bits/stdc++.h>
using namespace std;
long long powe(long long n) {
  long long s = 1;
  for (long long i = 1; i <= n; i++) {
    s = s << 1;
  }
  return s;
}
int main() {
  long long n, k, m;
  long long a[6] = {0}, b[6] = {0};
  cin.tie(0);
  cout.tie(0);
  ios_base::sync_with_stdio(false);
  cin >> n;
  if (n == 2)
    cout << 2;
  else
    cout << 1;
}
