#include using namespace std; int main(){ long N,M,r=1; int i=0; cin >> N >> M; while(r<=M && r>0){ r = r*N; i++; } cout << i << endl; }