#include<iostream> using namespace std; int main() { int a=0; cin>>a; if(a<7)cout<<a+1<<endl; else if(a==7)cout<<1<<endl; }