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