n,k = map(int, input().split())

ans = 0

while n > 0:
  n /= k
  n = int(n)
  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 while n > 0:
  n /= k
  n = int(n)
  ans += 1
   n > 0 n 0 n /= k n k n = int(n) n int(n) int n ans += 1 ans 1 print(ans) print ans ans = 0 0 ans n /= k k n n = int(n) int(n) n ans += 1 1 ans n,k = map(int, input().split()) map(int, input().split()) n k = map(int, input().split()) map(int, input().split()) k
n,k = map(int, input().split())

ans = 0

while n > 0:
  n /= k
  n = int(n)
  ans += 1
  
print(ans)
