#include <bits/stdc++.h>
using namespace std;
const long double eps = 1e-5;
const long double PI = acos(-1);
const int INF = (int)1e9;
const long long INFF = (long long)1e18;
const int mod = (int)1e9 + 7;
const int MXN = (int)3e5 + 7;
int main(void) {
  int n;
  cin >> n;
  puts(n == 2 ? "2" : "1");
  return 0;
}
