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