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