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