#include <bits/stdc++.h>
using namespace std;
long long a[1234567], i, n, k = INT_MIN, ans;
long long b, c, d, e, p, l;
string s;
int main() {
  ios::sync_with_stdio(NULL);
  cin.tie(NULL);
  cout.tie(NULL);
  string s;
  cin >> n;
  if (n != 2)
    cout << 1;
  else
    cout << 2;
}
