'use strict';
function main(input) {
  const arr = input.trim().split('\s');
  const log = Math.log(arr[0]) / Math.log(arr[1]);

  console.log(Math.floor(log + 1));
}


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