open System let [|N; K|] = stdin.ReadLine().Split() |> Array.map int64 printfn "%d" ((N + K + 1L) / (K + 1L))