#include using namespace std; using ll=long long; int main(){ ll h,a; cin>>h>>a; queue que; que.push(h); ll ans=0; while(que.size()){ ll q=que.front(); que.pop(); ll nh=q/a; ans++; if(nh>0){ que.push(nh); que.push(nh); } } cout<