import itertools
import functools
import math
from collections import Counter
from itertools import combinations
import re


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

cnt = 1
while True:
    if cnt > 10000:
        break

    if N // K**cnt == 0:
        print(cnt)
        exit()
    cnt += 1 import itertools itertools import functools functools import math math from collections import Counter from itertools import combinations import re re N,K=map(int,input().split()) N map(int,input().split()) map int input().split() ().split () input split K cnt = 1 cnt 1 while True:
    if cnt > 10000:
        break

    if N // K**cnt == 0:
        print(cnt)
        exit()
    cnt += 1 True if cnt > 10000:
        break

     cnt > 10000 cnt 10000 break if N // K**cnt == 0:
        print(cnt)
        exit()
     N // K**cnt == 0 N // K**cnt N K**cnt K cnt 0 print(cnt) print cnt exit() exit cnt += 1 cnt 1 N,K=map(int,input().split()) map(int,input().split()) N cnt += 1 1 cnt K=map(int,input().split()) map(int,input().split()) K cnt = 1 1 cnt
import itertools
import functools
import math
from collections import Counter
from itertools import combinations
import re


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

cnt = 1
while True:
    if cnt > 10000:
        break

    if N // K**cnt == 0:
        print(cnt)
        exit()
    cnt += 1
