#include <bits/stdc++.h>
using namespace std;
long long a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w,
    x, y, z, ans, maxi, mini, res;
string s1, s2;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cin >> x;
  if (x == 2)
    cout << 2;
  else
    cout << 1;
  return 0;
}
