n,k = map(int,input().split())
ans = 0
m = 1
while m <= n:
  m *= k
  ans += 1
print(ans) n,k = map(int,input().split()) n map(int,input().split()) map int input().split() ().split () input split k ans = 0 ans 0 m = 1 m 1 while m <= n:
  m *= k
  ans += 1 m <= n m n m *= k m k ans += 1 ans 1 print(ans) print ans m *= k k m ans += 1 1 ans k = map(int,input().split()) map(int,input().split()) k ans = 0 0 ans m = 1 1 m n,k = map(int,input().split()) map(int,input().split()) n
n,k = map(int,input().split())
ans = 0
m = 1
while m <= n:
  m *= k
  ans += 1
print(ans)
