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