n,k = map(int, input().split())
for i in range(50):
    if n < pow(k,i):
        print(i)
        exit() n,k = map(int, input().split()) n map(int, input().split()) map int input().split() ().split () input split k for i in range(50):
    if n < pow(k,i):
        print(i)
        exit() i range(50) range 50 if n < pow(k,i):
        print(i)
        exit() n < pow(k,i) n pow(k,i) pow k i print(i) print i exit() exit 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 i in range(50):
    if n < pow(k,i):
        print(i)
        exit()