N, K = map(int, input().split())
r = 1
while not(K**(r-1) <= N and N < K ** r):
  r += 1
print(r) N, K = map(int, input().split()) N map(int, input().split()) map int input().split() ().split () input split K r = 1 r 1 while not(K**(r-1) <= N and N < K ** r):
  r += 1 not(K**(r-1) <= N and N < K ** r) K**(r-1) <= N and N < K ** r K**(r-1) <= N K**(r-1) K r-1 r 1 N N < K ** r N K ** r K r r += 1 r 1 print(r) print r N, K = map(int, input().split()) map(int, input().split()) N r += 1 1 r r = 1 1 r K = map(int, input().split()) map(int, input().split()) K
N, K = map(int, input().split())
r = 1
while not(K**(r-1) <= N and N < K ** r):
  r += 1
print(r)