N, K = (int(x) for x in input().split())
ans=0
while(N>=1):
  N = int(N/K)
  ans+=1

print(ans) int(x) for x in input().split() for x in input().split() x input().split() ().split () input split for x in input().split() int(x) int x N, K = (int(x) for x in input().split()) N (int(x) for x in input().split()) K ans=0 ans 0 while(N>=1):
  N = int(N/K)
  ans+=1 N>=1 N 1 N = int(N/K) N int(N/K) int N/K N K ans+=1 ans 1 print(ans) print ans K = (int(x) for x in input().split()) (int(x) for x in input().split()) K ans+=1 1 ans N = int(N/K) int(N/K) N N, K = (int(x) for x in input().split()) (int(x) for x in input().split()) N ans=0 0 ans
N, K = (int(x) for x in input().split())
ans=0
while(N>=1):
  N = int(N/K)
  ans+=1

print(ans)