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