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

while N != 0:
    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 N != 0:
    N = N//K
    ans += 1 N != 0 N 0 N = N//K N N//K N K ans += 1 ans 1 print(ans) print ans N = N//K N//K N ans = 0 0 ans ans += 1 1 ans K = map(int, input().split()) map(int, input().split()) K N, K = map(int, input().split()) map(int, input().split()) N
N, K = map(int, input().split())
ans = 0

while N != 0:
    N = N//K
    ans += 1

print(ans)