function Main(input) {
	input = input.split("\n");
	input = input[0].split(" ")
	const N = parseInt(input[0])
	const D = parseInt(input[1])

	console.log(Math.ceil(N / (2*D + 1)))
}
Main(require("fs").readFileSync("/dev/stdin", "utf8"));