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

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