const main = (inputs) => {
  var N = inputs[0].split(" ")[0];
  var D = inputs[0].split(" ")[1];
  console.log(Math.ceil(N/(D*2+1)));
}

main(require('fs').readFileSync('/dev/stdin', 'UTF-8').trim().split("\n"));
