exec"a,b=map(int,raw_input().split());x=0\nwhile a>b**x:x+=1\nprint x\n"*100