N,K = map(int,input().split())

D = 0

while N > 0:
  N //= K
  D += 1
  
print(D) N,K = map(int,input().split()) N map(int,input().split()) map int input().split() ().split () input split K D = 0 D 0 while N > 0:
  N //= K
  D += 1
   N > 0 N 0 N //= K N K D += 1 D 1 print(D) print D D = 0 0 D N //= K K N N,K = map(int,input().split()) map(int,input().split()) N K = map(int,input().split()) map(int,input().split()) K D += 1 1 D
N,K = map(int,input().split())

D = 0

while N > 0:
  N //= K
  D += 1
  
print(D)