n, k = map(int, input().split())
for i in range(1, 100):
  if k ** (i - 1) <= n < k ** i:
    print(i)
    exit() n, k = map(int, input().split()) n map(int, input().split()) map int input().split() ().split () input split k for i in range(1, 100):
  if k ** (i - 1) <= n < k ** i:
    print(i)
    exit() i range(1, 100) range 1 100 if k ** (i - 1) <= n < k ** i:
    print(i)
    exit() k ** (i - 1) <= n < k ** i k ** (i - 1) <= n k ** (i - 1) k i - 1 i 1 n k ** i k i print(i) print i exit() exit k = map(int, input().split()) map(int, input().split()) k n, k = map(int, input().split()) map(int, input().split()) n
n, k = map(int, input().split())
for i in range(1, 100):
  if k ** (i - 1) <= n < k ** i:
    print(i)
    exit()