#include <bits/stdc++.h>
using namespace std;
const double EPS = 1e-9;
const int MOD = 1e9 + 7;
template <class T>
inline T my_min(T a, T b) {
  return a < b ? a : b;
}
template <class T>
inline T my_max(T a, T b) {
  return a > b ? a : b;
}
template <class T>
inline void my_swap(T& a, T& b) {
  T tmp = a;
  a = b;
  b = tmp;
}
template <class T>
inline T my_abs(T a) {
  return (a > 0 ? a : -a);
}
const int max_size = 1e5 + 5;
int n;
int main() {
  scanf("%d", &n);
  cout << (n / 2) + 1 << "\n";
  return 0;
}
