n,k = map(int,input().split())
i = 1
cnt = 0
while i <= n:
    i *= k
    cnt += 1
print(cnt) n,k = map(int,input().split()) n map(int,input().split()) map int input().split() ().split () input split k i = 1 i 1 cnt = 0 cnt 0 while i <= n:
    i *= k
    cnt += 1 i <= n i n i *= k i k cnt += 1 cnt 1 print(cnt) print cnt n,k = map(int,input().split()) map(int,input().split()) n cnt = 0 0 cnt k = map(int,input().split()) map(int,input().split()) k i = 1 1 i i *= k k i cnt += 1 1 cnt
n,k = map(int,input().split())
i = 1
cnt = 0
while i <= n:
    i *= k
    cnt += 1
print(cnt)