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

for i in range(1,N+1):
    if N < K**i:
        ans = i
        break

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 for i in range(1,N+1):
    if N < K**i:
        ans = i
        break i range(1,N+1) range 1 N+1 N 1 if N < K**i:
        ans = i
        break N < K**i N K**i K i ans = i ans i break print(ans) print ans K = map(int, input().split()) map(int, input().split()) K ans = i i ans N, K = map(int, input().split()) map(int, input().split()) N ans = 0 0 ans
N, K = map(int, input().split())
ans = 0

for i in range(1,N+1):
    if N < K**i:
        ans = i
        break

print(ans)