#include <iostream>
using namespace std;

long long n, k;

int main() {
	cin >> n >> k;
	cout << n / (k + 1) + 1 << endl;
	return 0;
}