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