import math n,m=map(int,input().split()) print(int(math.log(m,n)))