#include <bits/stdc++.h>
using namespace std;
using namespace std;
const int N = (int)1e5 + 7;
const int linf = (int)1e9 + 7;
const int mod = (int)998244353;
int n;
int main() {
  cin >> n;
  if (n == 2) {
    cout << 2;
    return 0;
  }
  cout << 1;
  return 0;
}
