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