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

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

for x in reversed(range(0,30)):
    if N/(K**x) >= 1:
        print(x+1)
        break