import Foundation

func readInts() -> [Int] {
    return readLine()!.split(separator: " ").map { Int($0)! }
}

let nd=readInts()
let n:Double=Double(nd[0])
let d:Double=Double(nd[1])

print(Int(ceil(n/(2*d+1))))