#include <bits/stdc++.h>
using namespace std;
template <typename T>
istream &operator>>(istream &is, vector<T> &arr);
template <typename T>
ostream &operator<<(ostream &os, vector<T> &arr);
template <typename T>
T max(vector<T> a);
template <typename T>
T min(vector<T> a);
int main() {
  int v;
  cin >> v;
  int n = v;
  cout << (n == 2 ? 2 : 1) << endl;
}
template <typename T>
istream &operator>>(istream &is, vector<T> &arr) {
  typename vector<T>::iterator a;
  for (a = arr.begin(); a != arr.end(); a++) {
    is >> *a;
  }
  return is;
}
template <typename T>
ostream &operator<<(ostream &os, vector<T> &arr) {
  typename vector<T>::iterator a;
  for (a = arr.begin(); a != arr.end(); a++) {
    os << *a << " ";
  }
  os << endl;
  return os;
}
template <typename T>
T max(vector<T> a) {
  typename vector<T>::iterator p;
  T mx = *a.begin();
  for (p = a.begin(); p < a.end(); p++) {
    mx = max(mx, *p);
  }
  return mx;
}
template <typename T>
T min(vector<T> a) {
  typename vector<T>::iterator p;
  T mn = *a.begin();
  for (p = next(p, 1); p < a.end(); p++) {
    mn = min(mn, *p);
  }
  return mn;
}
