n,k= map(int,input().split())
temp = 1 
cnt = 0

while n >= temp:
    temp *= k
    cnt += 1
print(max(1,cnt)) n,k= map(int,input().split()) n map(int,input().split()) map int input().split() ().split () input split k temp = 1 temp 1 cnt = 0 cnt 0 while n >= temp:
    temp *= k
    cnt += 1 n >= temp n temp temp *= k temp k cnt += 1 cnt 1 print(max(1,cnt)) print max(1,cnt) max 1 cnt n,k= map(int,input().split()) map(int,input().split()) n k= map(int,input().split()) map(int,input().split()) k cnt = 0 0 cnt temp = 1 1 temp cnt += 1 1 cnt temp *= k k temp
n,k= map(int,input().split())
temp = 1 
cnt = 0

while n >= temp:
    temp *= k
    cnt += 1
print(max(1,cnt))