#include <bits/stdc++.h>
using namespace std;
const long long int N = 1e9 + 7;
long long int h[200009], a[200009];
int main() {
  long long int n, m, i, b, j, c, d, x, y, z, k, sum = 0, l, r = 1;
  vector<long long int> v;
  vector<long long int>::iterator it;
  cin >> n;
  cout << (n / 2) + 1;
}
