/** * author: shu8Cream * created: 12.03.2021 21:27:18 **/ #include using namespace std; #define rep(i,n) for (int i=0; i<(n); i++) #define all(x) (x).begin(), (x).end() using ll = long long; using P = pair; using vi = vector; using vvi = vector; int main() { cin.tie(nullptr); ios::sync_with_stdio(false); int n; cin >> n; cout << (n%2==0 ? 2 : 1) << endl; }