#yuki477 n,k=map(int,raw_input().split()) res=n/(k+1)+1 print res