object Main extends App {
  io.StdIn.readLine.split(" ").map(_.toInt) match {
    case Array(n, k) => {
      var now = n
      var ans = 0
      while(now > 0) {
        now = now / k
        ans = ans + 1
      }
      println(ans)
    }
  }
}
