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