
function Main(input) {
    var N = parseInt(input[0], 10);
    var D = parseInt(input[1], 10);

    console.log(Math.ceil(N / (D * 2 + 1)));
}

Main(require("fs").readFileSync("/dev/stdin", "utf8").trim().split(/\n|\s/));