N,M=map(int,input().split()) result=0 for x in range(1,100): if M<=N**x: result=x else: print(result) exit()