#include <bits/stdc++.h>
using namespace std;
void solve() {
  long long int n;
  cin >> n;
  if (n == 2)
    cout << n << endl;
  else
    cout << "1" << endl;
  return;
}
int main() {
  solve();
  return 0;
}
