#include <bits/stdc++.h>
using namespace std;
int a[2010];
int b[2010];
bool cmp(int i, int j) { return b[i] < b[j]; }
int main() {
  int n;
  cin >> n;
  int cnt = 0;
  int k = n / 2;
  k++;
  while ((int)(n / k) > 1) {
    cnt++;
    k++;
  }
  if (n <= 1)
    cout << 1;
  else
    cout << cnt + k;
  return 0;
}
