n, d = gets.split.map(&:to_i)
range = d*2

if n > range
  cnt = 1
  while 1
    n = n - (range + 1)
    if n < 0 || n == 0
      puts cnt
      exit
    else
      cnt = cnt + 1
    end
  end
else
  puts 1
end