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