N, K = list(map(int, input().split())) print(N // (K + 1) + 1)