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