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

i = 1
temp = k

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

i = 1
temp = k

while n >= k**i:
    i += 1
print(i)
