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