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