c = 0
n, b = map(int, input().split())
while n > 0:
    c +=1
    n//=b
print(c) c = 0 c 0 n, b = map(int, input().split()) n map(int, input().split()) map int input().split() ().split () input split b while n > 0:
    c +=1
    n//=b n > 0 n 0 c +=1 c 1 n//=b n b print(c) print c b = map(int, input().split()) map(int, input().split()) b c +=1 1 c n, b = map(int, input().split()) map(int, input().split()) n c = 0 0 c n//=b b n
c = 0
n, b = map(int, input().split())
while n > 0:
    c +=1
    n//=b
print(c)