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


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


i=0
while n//k**(i+1)>=1:
    i+=1
print(i+1)
