"use strict";
function Main(input) {
  input = input.split(" ").map(Number);
  let cval = input[0];
  let count = 0;
  while (cval) {
    count++;
    cval = Math.floor(cval / input[1]);
  }
  console.log(count);
}

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