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