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