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

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

print(c + 1)