# coding: utf-8
# Your code here!

n,k = map(int, input().split())
cnt = 1
a = k
while k <= n:
  k = k*a
  cnt += 1

print(cnt) n,k = map(int, input().split()) n map(int, input().split()) map int input().split() ().split () input split k cnt = 1 cnt 1 a = k a k while k <= n:
  k = k*a
  cnt += 1 k <= n k n k = k*a k k*a k a cnt += 1 cnt 1 print(cnt) print cnt cnt += 1 1 cnt a = k k a n,k = map(int, input().split()) map(int, input().split()) n k = k*a k*a k cnt = 1 1 cnt k = map(int, input().split()) map(int, input().split()) k
# coding: utf-8
# Your code here!

n,k = map(int, input().split())
cnt = 1
a = k
while k <= n:
  k = k*a
  cnt += 1

print(cnt)