n,m = map(int,input().split()) t = n ans = 0 while t <= m: ans += 1 t *= n print(ans)