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