#include<bits/stdc++.h> using namespace std; int main() { int n,j; cin>>n; j=int(1.0*n/2)+1; cout<<j; return 0; }