n,m=map(int,input().split()) pw=0 now=1 while(now<=m): pw+=1 now*=n print(pw-1)