n,k =list(map(int,input().split()))

for i in range(31):
  if n < k ** i:
    print(i)
    break n,k =list(map(int,input().split())) n list(map(int,input().split())) list map(int,input().split()) map int input().split() ().split () input split k for i in range(31):
  if n < k ** i:
    print(i)
    break i range(31) range 31 if n < k ** i:
    print(i)
    break n < k ** i n k ** i k i print(i) print i break k =list(map(int,input().split())) list(map(int,input().split())) k n,k =list(map(int,input().split())) list(map(int,input().split())) n
n,k =list(map(int,input().split()))

for i in range(31):
  if n < k ** i:
    print(i)
    break