#include using namespace std; int main() { long long n,k; cin >> n >> k; cout << n / (k + 1) + 1 << endl; return 0; }