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

D = 1
while True:
    if N//K >0:
        D += 1
        N = N//K
    else:
        break

print(D) N,K = map(int,input().split()) N map(int,input().split()) map int input().split() ().split () input split K D = 1 D 1 while True:
    if N//K >0:
        D += 1
        N = N//K
    else:
        break True if N//K >0:
        D += 1
        N = N//K
    else:
        break N//K >0 N//K N K 0 D += 1 D 1 N = N//K N N//K N K break print(D) print D K = map(int,input().split()) map(int,input().split()) K D += 1 1 D D = 1 1 D N,K = map(int,input().split()) map(int,input().split()) N N = N//K N//K N
N,K = map(int,input().split())

D = 1
while True:
    if N//K >0:
        D += 1
        N = N//K
    else:
        break

print(D)