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