N,K = map(int, input().split())
tmp=N
count=0
while tmp!=0:
    tmp = tmp//K
    count += 1

print(count) N,K = map(int, input().split()) N map(int, input().split()) map int input().split() ().split () input split K tmp=N tmp N count=0 count 0 while tmp!=0:
    tmp = tmp//K
    count += 1 tmp!=0 tmp 0 tmp = tmp//K tmp tmp//K tmp K count += 1 count 1 print(count) print count N,K = map(int, input().split()) map(int, input().split()) N tmp=N N tmp K = map(int, input().split()) map(int, input().split()) K count=0 0 count tmp = tmp//K tmp//K tmp count += 1 1 count
N,K = map(int, input().split())
tmp=N
count=0
while tmp!=0:
    tmp = tmp//K
    count += 1

print(count)