'use strict'
const main = arg => {
  const n = parseInt(arg.split(' ')[0], 10)
  const k = parseInt(arg.split(' ')[1], 10)
  let i = 1
  while (n > Math.pow(k, i)) i++
  console.log(i)
}
main(require('fs').readFileSync('/dev/stdin', 'utf-8'))
