#include <bits/stdc++.h>
using namespace std;
string ans_Yes = "Yes";
string ans_No = "No";
string ans_yes = "yes";
string ans_no = "no";
long long N;
int main() {
  cin >> N;
  cout << N / 2 + 1 << endl;
}
