ll@N,@M;long double x=N;rep(n,61)if(x**n>M)wt(n-1),exit(0);