N,K = map(int,input().split())
ans=1
p=K
while p <= N:
  p *= K
  ans+=1
print(ans) N,K = map(int,input().split()) N map(int,input().split()) map int input().split() ().split () input split K ans=1 ans 1 p=K p K while p <= N:
  p *= K
  ans+=1 p <= N p N p *= K p K ans+=1 ans 1 print(ans) print ans p=K K p ans=1 1 ans ans+=1 1 ans N,K = map(int,input().split()) map(int,input().split()) N p *= K K p K = map(int,input().split()) map(int,input().split()) K
N,K = map(int,input().split())
ans=1
p=K
while p <= N:
  p *= K
  ans+=1
print(ans)