#include using namespace std; int main(void){ // Here your code ! unsigned long long int N,K; cin >> N >> K; if( N <= K ){ cout << 1 << endl; return 0; } if( N/ ((N+K)/(K+1)) > K ) cout << (N+K)/(K+1)+1 << endl; else cout << (N+K)/(K+1) << endl; }