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