n,k=map(int,input().split())
a=0
b=n
while b>=k:

    b=b//k

    a+=1

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

    b=b//k

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

    b=b//k

    a+=1

print(a+1)
