N,K=map(int,input().split())
count = 1
kai = K
while N >= K:
    K = K*kai
    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 kai = K kai K while N >= K:
    K = K*kai
    count += 1 N >= K N K K = K*kai K K*kai K kai count += 1 count 1 print(count) print count kai = K K kai count = 1 1 count K = K*kai K*kai K K=map(int,input().split()) map(int,input().split()) K N,K=map(int,input().split()) map(int,input().split()) N count += 1 1 count
N,K=map(int,input().split())
count = 1
kai = K
while N >= K:
    K = K*kai
    count += 1
print(count)