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