'use strict'
function main(inp) {
  inp = inp.trim().split(' ').map(x=> x*1);
  let N = inp[0];
  let K = inp[1];
  let ans = 0;
  while(N >= K){
  	N = N / K;
    ++ans;
  }
  console.log(ans + 1);
}

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