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