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