import sys
n,k = map(int, sys.stdin.readline().rstrip("\n").split())
ans = 0
while n != 0:
    n = n // k
    ans += 1
print(ans) import sys sys n,k = map(int, sys.stdin.readline().rstrip("\n").split()) n map(int, sys.stdin.readline().rstrip("\n").split()) map int sys.stdin.readline().rstrip("\n").split() sys.stdin.readline().rstrip("\n").split sys.stdin.readline().rstrip("\n") sys.stdin.readline().rstrip sys.stdin.readline() sys.stdin.readline sys.stdin sys stdin readline rstrip "\n" 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 n,k = map(int, sys.stdin.readline().rstrip("\n").split()) map(int, sys.stdin.readline().rstrip("\n").split()) n k = map(int, sys.stdin.readline().rstrip("\n").split()) map(int, sys.stdin.readline().rstrip("\n").split()) k ans += 1 1 ans
import sys
n,k = map(int, sys.stdin.readline().rstrip("\n").split())
ans = 0
while n != 0:
    n = n // k
    ans += 1
print(ans)