#include int main(){ int a; int b; int c; int d; scanf("%d%d",&a,&b); c=b/a; d=b%a; while(d){ c++; d=d/a; } printf("%d",c); return 0; }