n, k = map(int,input().split())
i = 1
x = k
while True:
  if (x > n):
    print(i)
    break
  else:
    i = i + 1
    x = x*k n, k = map(int,input().split()) n map(int,input().split()) map int input().split() ().split () input split k i = 1 i 1 x = k x k while True:
  if (x > n):
    print(i)
    break
  else:
    i = i + 1
    x = x*k True if (x > n):
    print(i)
    break
  else:
    i = i + 1
    x = x*k x > n x n print(i) print i break i = i + 1 i i + 1 i 1 x = x*k x x*k x k k = map(int,input().split()) map(int,input().split()) k i = 1 1 i x = k k x x = x*k x*k x n, k = map(int,input().split()) map(int,input().split()) n i = i + 1 i + 1 i
n, k = map(int,input().split())
i = 1
x = k
while True:
  if (x > n):
    print(i)
    break
  else:
    i = i + 1
    x = x*k
