function Main(input) {
  var n = parseInt(input.split(" ")[0]);
  var d = parseInt(input.split(" ")[1]);
  console.log(Math.ceil(n/(d*2+1)));
}

Main(require("fs").readFileSync("/dev/stdin", "utf8"));
