fun main(args:Array<String>){
    val (appleTree, intD) = readLine()!!.split(" ").map(String::toInt)
    var treeOrder = 1
    var ans = 0
    while(1 > treeOrder - intD){
        treeOrder++
    }
    for(i in 1..appleTree){
        if((treeOrder + intD) * i >= appleTree){
            ans = i
            break
        }
    }
    print(ans)

}