'use strict'
const main = input => {
  input = input[0].split(' ');
  const n = parseInt(input[0], 10), d = parseInt(input[1], 10); 
  console.log(Math.ceil(n/(2*d+1)));
  
}
main(require("fs").readFileSync("/dev/stdin", "utf8").split('\n'));