n,k=[int(s) for s in input().split()]

count=0
while n>0:
  n=n//k
  count=count+1
print(count) int(s) for s in input().split() for s in input().split() s input().split() ().split () input split for s in input().split() int(s) int s n,k=[int(s) for s in input().split()] n [int(s) for s in input().split()] k count=0 count 0 while n>0:
  n=n//k
  count=count+1 n>0 n 0 n=n//k n n//k n k count=count+1 count count+1 count 1 print(count) print count n=n//k n//k n count=0 0 count n,k=[int(s) for s in input().split()] [int(s) for s in input().split()] n count=count+1 count+1 count k=[int(s) for s in input().split()] [int(s) for s in input().split()] k
n,k=[int(s) for s in input().split()]

count=0
while n>0:
  n=n//k
  count=count+1
print(count)