n, k = map(int, input().split())
d = 1

while n // k ** d >= 1:
  d += 1

print(d) n, k = map(int, input().split()) n map(int, input().split()) map int input().split() ().split () input split k d = 1 d 1 while n // k ** d >= 1:
  d += 1 n // k ** d >= 1 n // k ** d n k ** d k d 1 d += 1 d 1 print(d) print d d += 1 1 d d = 1 1 d 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())
d = 1

while n // k ** d >= 1:
  d += 1

print(d)