N, K = list(map(int, input().rstrip().split()))
r = 0
while 0 < N:
    r += 1
    N = int(N / K)

print(r)
 N, K = list(map(int, input().rstrip().split())) N list(map(int, input().rstrip().split())) list map(int, input().rstrip().split()) map int input().rstrip().split() ().rstrip().split ().rstrip() ().rstrip () input rstrip split K r = 0 r 0 while 0 < N:
    r += 1
    N = int(N / K) 0 < N 0 N r += 1 r 1 N = int(N / K) N int(N / K) int N / K N K print(r) print r K = list(map(int, input().rstrip().split())) list(map(int, input().rstrip().split())) K N, K = list(map(int, input().rstrip().split())) list(map(int, input().rstrip().split())) N N = int(N / K) int(N / K) N r += 1 1 r r = 0 0 r
N, K = list(map(int, input().rstrip().split()))
r = 0
while 0 < N:
    r += 1
    N = int(N / K)

print(r)

