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

for n in range(10**10):
    if N < K**n:
        print(n)
        exit() N, K = map(int, input().split()) N map(int, input().split()) map int input().split() ().split () input split K for n in range(10**10):
    if N < K**n:
        print(n)
        exit() n range(10**10) range 10**10 10 10 if N < K**n:
        print(n)
        exit() N < K**n N K**n K n print(n) print n 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 n in range(10**10):
    if N < K**n:
        print(n)
        exit()