from sys import exit
import math
ii = lambda : int(input())
mi = lambda : map(int,input().split())
li = lambda : list(map(int,input().split()))

n,k = mi()

ans = 0
while n > 0:
    n //= k
    ans += 1
print(ans) from sys import exit import math math ii = lambda : int(input()) ii lambda : int(input()) int(input()) int input() input mi = lambda : map(int,input().split()) mi lambda : map(int,input().split()) map(int,input().split()) map int input().split() ().split () input split li = lambda : list(map(int,input().split())) li lambda : list(map(int,input().split())) list(map(int,input().split())) list map(int,input().split()) map int input().split() ().split () input split n,k = mi() n mi() mi k ans = 0 ans 0 while n > 0:
    n //= k
    ans += 1 n > 0 n 0 n //= k n k ans += 1 ans 1 print(ans) print ans li = lambda : list(map(int,input().split())) lambda : list(map(int,input().split())) li ii = lambda : int(input()) lambda : int(input()) ii n //= k k n mi = lambda : map(int,input().split()) lambda : map(int,input().split()) mi ans = 0 0 ans n,k = mi() mi() n ans += 1 1 ans k = mi() mi() k
from sys import exit
import math
ii = lambda : int(input())
mi = lambda : map(int,input().split())
li = lambda : list(map(int,input().split()))

n,k = mi()

ans = 0
while n > 0:
    n //= k
    ans += 1
print(ans)