n, k = map(int,input().split()) ans = 1 if n > k: ans = round(n//(k+1))+1 print(ans)