import math

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

ans = int(math.log(N, K))+1

print(ans) import math math N, K = map(int, input().split()) N map(int, input().split()) map int input().split() ().split () input split K ans = int(math.log(N, K))+1 ans int(math.log(N, K))+1 int(math.log(N, K)) int math.log(N, K) math.log math log N K 1 print(ans) print ans ans = int(math.log(N, K))+1 int(math.log(N, K))+1 ans N, K = map(int, input().split()) map(int, input().split()) N K = map(int, input().split()) map(int, input().split()) K
import math

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

ans = int(math.log(N, K))+1

print(ans)