N, M = map(int, input().split()) cur = 1 i = 0 while cur < M: cur *= N if cur > M: break i += 1 print(i)