#include<iostream>
using namespace std;

long long n, k;

int main(){
	cin >> n >> k;

	cout << n / (k + 1) + 1 << "\n";

	return 0;
}