import std.stdio, std.conv, std.string, std.algorithm, std.math, std.array, std.container;

void main() {
  int n, k;
  readf("%d %d\n", &n, &k);
  int i=1;
  while(n/k > 0) {
    n /= k;
    i++;
  }
  writeln(i);
}

