N, K = map(int, input().split())
n=0
while True:
  N//=K
  if not N:
    break
  n+=1
print(n+1) N, K = map(int, input().split()) N map(int, input().split()) map int input().split() ().split () input split K n=0 n 0 while True:
  N//=K
  if not N:
    break
  n+=1 True N//=K N K if not N:
    break
   not N N break n+=1 n 1 print(n+1) print n+1 n 1 K = map(int, input().split()) map(int, input().split()) K n+=1 1 n N//=K K N N, K = map(int, input().split()) map(int, input().split()) N n=0 0 n
N, K = map(int, input().split())
n=0
while True:
  N//=K
  if not N:
    break
  n+=1
print(n+1)