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