n, k = map(int, input().split())
i = 0
while True:
  if n // pow(k, i) == 0:
    print(i)
    break
  else:
    i += 1 n, k = map(int, input().split()) n map(int, input().split()) map int input().split() ().split () input split k i = 0 i 0 while True:
  if n // pow(k, i) == 0:
    print(i)
    break
  else:
    i += 1 True if n // pow(k, i) == 0:
    print(i)
    break
  else:
    i += 1 n // pow(k, i) == 0 n // pow(k, i) n pow(k, i) pow k i 0 print(i) print i break i += 1 i 1 k = map(int, input().split()) map(int, input().split()) k n, k = map(int, input().split()) map(int, input().split()) n i += 1 1 i i = 0 0 i
n, k = map(int, input().split())
i = 0
while True:
  if n // pow(k, i) == 0:
    print(i)
    break
  else:
    i += 1