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

ans = 0
while n >= k:
    ans += 1
    n = n//k

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

ans = 0
while n >= k:
    ans += 1
    n = n//k

print(ans+1)