from decimal import * import math def main(): N, K = map(Decimal, input().split()) if N % (K + 1) == 0: print(int(N/(K + 1)) + 1) else: print(math.ceil(N/(K + 1))) if __name__ == '__main__': main()