#include <iostream>
using namespace std;
int main(){
    long long a,b;cin>>a>>b;
    if(a%(b+1)){
        cout << (a-1)/(b+1)+1 << endl;
    }else{
        cout << (a-1)/(b+1)+2 << endl;
    }
}