n, k = map(int, input().split())

ans = 1
while(True):
    n = n//k
    if(n == 0):
        break
    ans += 1

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

ans = 1
while(True):
    n = n//k
    if(n == 0):
        break
    ans += 1

print(ans)