n, m = map(int, input().split()) for k in range(1, 100): if n ** k > m: print(k - 1) exit()