n, k = (int(n) for n in input().split())
count = 0
while True:
    n = n // k
    count += 1
    if n == 0:
        break
print(count) int(n) for n in input().split() for n in input().split() n input().split() ().split () input split for n in input().split() int(n) int n n, k = (int(n) for n in input().split()) n (int(n) for n in input().split()) k count = 0 count 0 while True:
    n = n // k
    count += 1
    if n == 0:
        break True n = n // k n n // k n k count += 1 count 1 if n == 0:
        break n == 0 n 0 break print(count) print count n, k = (int(n) for n in input().split()) (int(n) for n in input().split()) n k = (int(n) for n in input().split()) (int(n) for n in input().split()) k count = 0 0 count count += 1 1 count n = n // k n // k n
n, k = (int(n) for n in input().split())
count = 0
while True:
    n = n // k
    count += 1
    if n == 0:
        break
print(count)