# -*- coding: utf-8 -*- N, K = map(int, input().split()) print(N // (K + 1) + 1)