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