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

i = 1
while True:
  if k ** i > n:
    print(i)
    break
  i += 1 n, k = map(int, input().split()) n map(int, input().split()) map int input().split() ().split () input split k i = 1 i 1 while True:
  if k ** i > n:
    print(i)
    break
  i += 1 True if k ** i > n:
    print(i)
    break
   k ** i > n k ** i k i n print(i) print i break i += 1 i 1 i += 1 1 i i = 1 1 i n, k = map(int, input().split()) map(int, input().split()) n k = map(int, input().split()) map(int, input().split()) k
n, k = map(int, input().split())

i = 1
while True:
  if k ** i > n:
    print(i)
    break
  i += 1