import sys
input = lambda : sys.stdin.readline().rstrip()
sys.setrecursionlimit(max(1000, 10**9))
write = lambda x: sys.stdout.write(x+"\n")


n,k = map(int , input().split())
i = 0
while pow(k, i)<=n:
    i += 1
print(i) import sys sys input = lambda : sys.stdin.readline().rstrip() input lambda : sys.stdin.readline().rstrip() sys.stdin.readline().rstrip() sys.stdin.readline().rstrip sys.stdin.readline() sys.stdin.readline sys.stdin sys stdin readline rstrip sys.setrecursionlimit(max(1000, 10**9)) sys.setrecursionlimit sys setrecursionlimit max(1000, 10**9) max 1000 10**9 10 9 write = lambda x: sys.stdout.write(x+"\n") write lambda x: sys.stdout.write(x+"\n") sys.stdout.write(x+"\n") sys.stdout.write sys.stdout sys stdout write x+"\n" x "\n" x n,k = map(int , input().split()) n map(int , input().split()) map int input().split() ().split () input split k i = 0 i 0 while pow(k, i)<=n:
    i += 1 pow(k, i)<=n pow(k, i) pow k i n i += 1 i 1 print(i) print i i += 1 1 i k = map(int , input().split()) map(int , input().split()) k n,k = map(int , input().split()) map(int , input().split()) n write = lambda x: sys.stdout.write(x+"\n") lambda x: sys.stdout.write(x+"\n") write i = 0 0 i input = lambda : sys.stdin.readline().rstrip() lambda : sys.stdin.readline().rstrip() input
import sys
input = lambda : sys.stdin.readline().rstrip()
sys.setrecursionlimit(max(1000, 10**9))
write = lambda x: sys.stdout.write(x+"\n")


n,k = map(int , input().split())
i = 0
while pow(k, i)<=n:
    i += 1
print(i)