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

