n, k = map(int, input().split())
x = k
i = 1
while n >= x:
    i += 1
    x *= k
print(i) n, k = map(int, input().split()) n map(int, input().split()) map int input().split() ().split () input split k x = k x k i = 1 i 1 while n >= x:
    i += 1
    x *= k n >= x n x i += 1 i 1 x *= k x k print(i) print i i += 1 1 i k = map(int, input().split()) map(int, input().split()) k n, k = map(int, input().split()) map(int, input().split()) n x *= k k x x = k k x i = 1 1 i
n, k = map(int, input().split())
x = k
i = 1
while n >= x:
    i += 1
    x *= k
print(i)