'use strict';
function main(input) {
  const arr = input.trim().split('\s');

  console.log(Math.floor(logarithm(arr[1], arr[0]) + 1));
}

function logarithm(x, y) {
  return Math.log(y) / Math.log(x);
}

main(require("fs").readFileSync("/dev/stdin", "utf8"));