n,k = map(int, input().split())
res = 0
m = n-1
a = 1
while True:
    if n <= k**a - 1:
        break
    a += 1
print(a) n,k = map(int, input().split()) n map(int, input().split()) map int input().split() ().split () input split k res = 0 res 0 m = n-1 m n-1 n 1 a = 1 a 1 while True:
    if n <= k**a - 1:
        break
    a += 1 True if n <= k**a - 1:
        break
     n <= k**a - 1 n k**a - 1 k**a k a 1 break a += 1 a 1 print(a) print a a += 1 1 a k = map(int, input().split()) map(int, input().split()) k a = 1 1 a n,k = map(int, input().split()) map(int, input().split()) n res = 0 0 res m = n-1 n-1 m
n,k = map(int, input().split())
res = 0
m = n-1
a = 1
while True:
    if n <= k**a - 1:
        break
    a += 1
print(a)