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