# -*- coding: utf-8 -*-

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

cnt = 1
val = N
while val >= K:
    val = val / K
    cnt += 1

print(cnt) N, K = map(int, input().split()) N map(int, input().split()) map int input().split() ().split () input split K cnt = 1 cnt 1 val = N val N while val >= K:
    val = val / K
    cnt += 1 val >= K val K val = val / K val val / K val K cnt += 1 cnt 1 print(cnt) print cnt N, K = map(int, input().split()) map(int, input().split()) N val = val / K val / K val val = N N val cnt += 1 1 cnt K = map(int, input().split()) map(int, input().split()) K cnt = 1 1 cnt
# -*- coding: utf-8 -*-

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

cnt = 1
val = N
while val >= K:
    val = val / K
    cnt += 1

print(cnt)