n,m = map(int,input().split()) cnt = 0 t = n while t <= m: cnt += 1 t *= n print(cnt)