N, K = map(int, input().split())
ans = 0
num = 1

while num <= N:
  num *= 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 num = 1 num 1 while num <= N:
  num *= K
  ans += 1
   num <= N num N num *= K num K ans += 1 ans 1 print(ans) print ans N, K = map(int, input().split()) map(int, input().split()) N num *= K K num K = map(int, input().split()) map(int, input().split()) K ans += 1 1 ans num = 1 1 num ans = 0 0 ans
N, K = map(int, input().split())
ans = 0
num = 1

while num <= N:
  num *= K
  ans += 1
  
print(ans)