import sys import math def debug(x, table): for name, val in table.items(): if x is val: print('DEBUG: {} -> {}'.format(name, val), file=sys.stderr) return None N, K = map(int, input().split()) ans = N // (K + 1) + 1 print(ans)