"use strict";
const input = require("fs").readFileSync("/dev/stdin", "utf8");
const inputs = input.trim().split(" ");

const get = (inputs) => {
  const N = +inputs[0];
  const D = +inputs[1];
  
  return Math.ceil(N / (D*2+1));
}

console.log( get(inputs) );