#include <bits/stdc++.h>
using namespace std;
template <typename T>
using V = vector<T>;
const int INF = 1e9 + 5;
const int MOD = (int)1e9 + 7;
const int maxn = 50 + 5;
const int maxm = 1e4 + 5;
void add(int &a, int b) {
  a += b;
  if (a >= MOD) a -= MOD;
}
int modE(int n, int x) {
  int res = 1;
  while (x) {
    if (x & 1) res = (1ll * res * n) % MOD;
    n = (1ll * n * n) % MOD;
    x >>= 1;
  }
  return res;
}
int n;
int main() {
  cin >> n;
  cout << n / 2 + 1;
}
