n,k=map(int,input().split())
xx=k
c=0
while xx<=n:
  xx=k**c
  c+=1
if c<1:
  c=2
print(c-1) n,k=map(int,input().split()) n map(int,input().split()) map int input().split() ().split () input split k xx=k xx k c=0 c 0 while xx<=n:
  xx=k**c
  c+=1 xx<=n xx n xx=k**c xx k**c k c c+=1 c 1 if c<1:
  c=2 c<1 c 1 c=2 c 2 print(c-1) print c-1 c 1 k=map(int,input().split()) map(int,input().split()) k n,k=map(int,input().split()) map(int,input().split()) n c=0 0 c c+=1 1 c xx=k**c k**c xx xx=k k xx c=2 2 c
n,k=map(int,input().split())
xx=k
c=0
while xx<=n:
  xx=k**c
  c+=1
if c<1:
  c=2
print(c-1)