n,k=map(int,input().split())
ans=0
for i in range(100000000):
    if n>=1:
        n=n/k
        ans+=1
    else:
        print(ans)
        break n,k=map(int,input().split()) n map(int,input().split()) map int input().split() ().split () input split k ans=0 ans 0 for i in range(100000000):
    if n>=1:
        n=n/k
        ans+=1
    else:
        print(ans)
        break i range(100000000) range 100000000 if n>=1:
        n=n/k
        ans+=1
    else:
        print(ans)
        break n>=1 n 1 n=n/k n n/k n k ans+=1 ans 1 print(ans) print ans break 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 ans=0 0 ans
n,k=map(int,input().split())
ans=0
for i in range(100000000):
    if n>=1:
        n=n/k
        ans+=1
    else:
        print(ans)
        break