n,k = map(int,input().split())
if(n//k==0):
  a =0
else:
  a = 1
for i in range(100000000000):
  n =  n//k
  a +=1
  if(n<k):
    break
print(a) n,k = map(int,input().split()) n map(int,input().split()) map int input().split() ().split () input split k if(n//k==0):
  a =0
else:
  a = 1 n//k==0 n//k n k 0 a =0 a 0 a = 1 a 1 for i in range(100000000000):
  n =  n//k
  a +=1
  if(n<k):
    break i range(100000000000) range 100000000000 n =  n//k n n//k n k a +=1 a 1 if(n<k):
    break n<k n k break print(a) print a k = map(int,input().split()) map(int,input().split()) k a =0 0 a a = 1 1 a a +=1 1 a n =  n//k n//k n n,k = map(int,input().split()) map(int,input().split()) n
n,k = map(int,input().split())
if(n//k==0):
  a =0
else:
  a = 1
for i in range(100000000000):
  n =  n//k
  a +=1
  if(n<k):
    break
print(a)