import std.algorithm;
import std.array;
import std.conv;
import std.math;
import std.range;
import std.stdio;
import std.string;

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

