N,M=map(int,input().split()) for n in range(60): M//=N if M<1:exit(print(n))