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