#include <bits/stdc++.h>
using namespace std;
int inf = 1e9 + 9;
int defaultnum = 1e9 + 15;
int gcd(int a, int b) { return b ? gcd(b, a % b) : a; }
template <class T>
inline void amin(T &x, const T &y) {
  if (y < x) x = y;
}
template <class T>
inline void amax(T &x, const T &y) {
  if (x < y) x = y;
}
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  ;
  int n;
  cin >> n;
  cout << (n / 2) + 1;
  return 0;
}
