MM = input().split()
N = int(MM[0])
K = int(MM[1])
for i in range(1000000000000):
  if K**i > N:
    print(i)
    break MM = input().split() MM input().split() ().split () input split N = int(MM[0]) N int(MM[0]) int MM[0] MM 0 K = int(MM[1]) K int(MM[1]) int MM[1] MM 1 for i in range(1000000000000):
  if K**i > N:
    print(i)
    break i range(1000000000000) range 1000000000000 if K**i > N:
    print(i)
    break K**i > N K**i K i N print(i) print i break N = int(MM[0]) int(MM[0]) N MM = input().split() input().split() MM K = int(MM[1]) int(MM[1]) K
MM = input().split()
N = int(MM[0])
K = int(MM[1])
for i in range(1000000000000):
  if K**i > N:
    print(i)
    break
