n,k=map(int,input().split())
c=0
while(n>0):
    c+=1
    n=n//k
print(c) 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>0):
    c+=1
    n=n//k n>0 n 0 c+=1 c 1 n=n//k n n//k n k print(c) print c k=map(int,input().split()) map(int,input().split()) k n,k=map(int,input().split()) map(int,input().split()) n n=n//k n//k n c=0 0 c c+=1 1 c
n,k=map(int,input().split())
c=0
while(n>0):
    c+=1
    n=n//k
print(c)
