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