#!/usr/bin/env python3
# -*- coding: utf-8 -*-
import math
n, k = map(int, input().split())
r=0
while n > 0:
  r=r+1
  n=n//k
print(r) import math math n, k = map(int, input().split()) n map(int, input().split()) map int input().split() ().split () input split k r=0 r 0 while n > 0:
  r=r+1
  n=n//k n > 0 n 0 r=r+1 r r+1 r 1 n=n//k n n//k n k print(r) print r r=r+1 r+1 r n=n//k n//k n r=0 0 r n, k = map(int, input().split()) map(int, input().split()) n k = map(int, input().split()) map(int, input().split()) k
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
import math
n, k = map(int, input().split())
r=0
while n > 0:
  r=r+1
  n=n//k
print(r)
