N, K = list(map(int, input().split())) quote = N // (K + 1) mod = N % (K + 1) if mod > 0: ans = quote + 1 else: ans = quote print(ans)