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