import numpy N,M=map(int,input().split()) print(int(numpy.log(M)/numpy.log(N)))