N,M=map(int,input().split()) for n in range(61): if N**n>M:exit(print(n-1))