n,k = [int(x) for x in input().split()]
res = 0
while n > 0:
  n //= k
  res += 1
print(res) int(x) for x in input().split() for x in input().split() x input().split() ().split () input split for x in input().split() int(x) int x n,k = [int(x) for x in input().split()] n [int(x) for x in input().split()] k res = 0 res 0 while n > 0:
  n //= k
  res += 1 n > 0 n 0 n //= k n k res += 1 res 1 print(res) print res res += 1 1 res n,k = [int(x) for x in input().split()] [int(x) for x in input().split()] n res = 0 0 res n //= k k n k = [int(x) for x in input().split()] [int(x) for x in input().split()] k
n,k = [int(x) for x in input().split()]
res = 0
while n > 0:
  n //= k
  res += 1
print(res)