N, M = map(int, input().split()) SUM = 1 for i in range(1, 1<<60): SUM *= N if M < SUM: print(i-1) break