#include<iostream> using namespace std; int main(){ int c,j; cin>>c>>j; if(c%j>1){ cout<<c/j+2; } else cout<<c/j+1; return 0; }