#include using namespace std; int main() { unsigned long long n; unsigned long long k; cin >> n >> k; if (n % (k + 1) == 0)cout << n / (k + 1) << endl; else cout << n / (k + 1) + 2 << endl; return 0; }