n,k=map(int, input().split())

count=1
quo=n//k

while quo>0:
    quo=quo//k
    count+=1

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

count=1
quo=n//k

while quo>0:
    quo=quo//k
    count+=1

print(count)