N,K=map(int,input().split())
result=0
for i in range(10**9):
  if (N<K**i):
    result+=i
    break
print(result) N,K=map(int,input().split()) N map(int,input().split()) map int input().split() ().split () input split K result=0 result 0 for i in range(10**9):
  if (N<K**i):
    result+=i
    break i range(10**9) range 10**9 10 9 if (N<K**i):
    result+=i
    break N<K**i N K**i K i result+=i result i break print(result) print result result+=i i result N,K=map(int,input().split()) map(int,input().split()) N K=map(int,input().split()) map(int,input().split()) K result=0 0 result
N,K=map(int,input().split())
result=0
for i in range(10**9):
  if (N<K**i):
    result+=i
    break
print(result)