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