#include <bits/stdc++.h>
using namespace std;
const int N = 100005, M = 1000000007;
void Process() {
  int v;
  cin >> v;
  if (v == 2)
    cout << "2\n";
  else
    cout << "1\n";
}
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  int T = 1;
  while (T--) Process();
  return 0;
}
