#include using namespace std; int main(void){ int N,M; cin >> N >> M; cout << N /(M+1) + 1 << endl; }