n,k = map(int,input().split())
for i in range(100000):
  if k**(i-1) <= n < k**i:
    print(i)
    break n,k = map(int,input().split()) n map(int,input().split()) map int input().split() ().split () input split k for i in range(100000):
  if k**(i-1) <= n < k**i:
    print(i)
    break i range(100000) range 100000 if k**(i-1) <= n < k**i:
    print(i)
    break k**(i-1) <= n < k**i k**(i-1) <= n k**(i-1) k i-1 i 1 n k**i k i print(i) print i break 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())
for i in range(100000):
  if k**(i-1) <= n < k**i:
    print(i)
    break