#include <bits/stdc++.h>
int main(void) {
  int trees, distance;
  scanf("%d %d", &trees, &distance);
  int range = distance * 2 + 1;
  int min = (int)ceil((double)trees / range);
  printf("%d\n", min);
  return 0;
}
