n, k = map(int, input().split()) ans = (n - 1) // (k + 1) + 1 print(ans)