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