n, k = map(int, input().split())
cnt = 0
while n >= 1:
  n = n//k
  cnt +=1
print(cnt) n, k = map(int, input().split()) n map(int, input().split()) map int input().split() ().split () input split k cnt = 0 cnt 0 while n >= 1:
  n = n//k
  cnt +=1 n >= 1 n 1 n = n//k n n//k n k cnt +=1 cnt 1 print(cnt) print cnt k = map(int, input().split()) map(int, input().split()) k cnt +=1 1 cnt cnt = 0 0 cnt n, k = map(int, input().split()) map(int, input().split()) n n = n//k n//k n
n, k = map(int, input().split())
cnt = 0
while n >= 1:
  n = n//k
  cnt +=1
print(cnt)