N, K = map(int, input().split()) k_plus_1 = K + 1 if N % k_plus_1 == 0: x = (N // k_plus_1) + 1 else: x = (N + K) // k_plus_1 print(x)