#include "bits/stdc++.h"

#pragma warning(disable:4996)
using namespace std;


int main() {
	int N,K;cin>>N>>K;
	int ans=0;
	int sum=0;
	while (true) {
		int next=(sum-1)/K+1;
		if(ans==0)next=1;
		if (N < sum + next) {
			break;
		}
		else {
			sum+=next;
			ans++;
		}
	}
	cout<<ans<<endl;
	return 0;
}
