n,m=[*map(int,input().split())] i=0 while n**(i+1)<=m: i+=1 print(i)