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