N, K = map(int, input().split())
c = 1
while N//K != 0:
  N = N//K
  c += 1
print(c) N, K = map(int, input().split()) N map(int, input().split()) map int input().split() ().split () input split K c = 1 c 1 while N//K != 0:
  N = N//K
  c += 1 N//K != 0 N//K N K 0 N = N//K N N//K N K c += 1 c 1 print(c) print c c += 1 1 c c = 1 1 c N, K = map(int, input().split()) map(int, input().split()) N K = map(int, input().split()) map(int, input().split()) K N = N//K N//K N
N, K = map(int, input().split())
c = 1
while N//K != 0:
  N = N//K
  c += 1
print(c)