#include<bits/stdc++.h> using namespace std; int main(){ ios::sync_with_stdio(false); cin.tie(nullptr); int n; cin >> n; if(n < 7){ cout << n + 1; }else{ cout << 1; } return 0; }