a,b=map(int, input().split()) i=0 def aa(a,b): global i bb=a//b if bb<=1: return i else: i+=1 return aa(bb,b) c=aa(a,b) print(c+3)