import sys input = sys.stdin.readline N,M=map(int,input().split()) ANS=0 for i in range(1,10**6): if N**i<=M: ANS=i else: break print(ANS)