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