import math n,k = list(map(int,input().split())) ans = n//(k+1) + 1 print (ans)