N,K = map(int,input().split())
for i in range(N):
    if N >=K**i and N <K**(i+1):
        print(i+1)
        break N,K = map(int,input().split()) N map(int,input().split()) map int input().split() ().split () input split K for i in range(N):
    if N >=K**i and N <K**(i+1):
        print(i+1)
        break i range(N) range N if N >=K**i and N <K**(i+1):
        print(i+1)
        break N >=K**i and N <K**(i+1) N >=K**i N K**i K i N <K**(i+1) N K**(i+1) K i+1 i 1 print(i+1) print i+1 i 1 break K = map(int,input().split()) map(int,input().split()) K N,K = map(int,input().split()) map(int,input().split()) N
N,K = map(int,input().split())
for i in range(N):
    if N >=K**i and N <K**(i+1):
        print(i+1)
        break