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

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

bit = 0
while(N >= K**bit):
  bit += 1
print(bit)