n,k=map(int,input().split())
cnt=0
while(1):
  if n//(k**cnt) == 0:
    print(cnt)
    break
  cnt += 1 n,k=map(int,input().split()) n map(int,input().split()) map int input().split() ().split () input split k cnt=0 cnt 0 while(1):
  if n//(k**cnt) == 0:
    print(cnt)
    break
  cnt += 1 1 if n//(k**cnt) == 0:
    print(cnt)
    break
   n//(k**cnt) == 0 n//(k**cnt) n k**cnt k cnt 0 print(cnt) print cnt break cnt += 1 cnt 1 n,k=map(int,input().split()) map(int,input().split()) n cnt=0 0 cnt k=map(int,input().split()) map(int,input().split()) k cnt += 1 1 cnt
n,k=map(int,input().split())
cnt=0
while(1):
  if n//(k**cnt) == 0:
    print(cnt)
    break
  cnt += 1