N,M = list(map(int,input().split())) for i in range(10**18): if(N**i > M): print(i-1) exit()