N,K = map(int,input().split()) print(-(-N//(K+1)) if N%(K+1)!=0 else N//(K+1)+1)