-- yukicoder My Practice -- author: Leonardone @ NEETSDKASU main = getContents >>= print . solve . map read . words solve [n,k] = n `div` (k + 1) + 1