const input = require('fs').readFileSync('/dev/stdin','utf8').split("\n")[0]
const lst = input.split(" ").map(x => Number(x))
const N = lst[0]
const D = lst[1]
console.log(Math.floor((N+D*2)/(D*2+1)))