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