n,m=map(int,input().split()) cnt=0 while n<=m: m//=n cnt+=1 print(cnt)