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