# -*- coding: utf-8 -*-

"""

Created on Sun Mar  1 14:25:07 2020



@author: Kanaru Sato

"""



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

r = N

res = 0



while r >= K:

    r /= K

    res += 1



print((res+1))
# -*- coding: utf-8 -*-

"""

Created on Mon Mar  2 23:52:06 2020



@author: Kanaru Sato

"""



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

count = 1



while N >= K:

    N /= K

    count += 1



print(count)
# -*- coding: utf-8 -*-
"""
Created on Sun Mar  1 14:25:07 2020
@author: Kanaru Sato
"""
N, K = list(map(int, input().split()))
r = N
res = 0
while r >= K:
    r /= K
    res += 1
print((res + 1))

# -*- coding: utf-8 -*-
"""
Created on Mon Mar  2 23:52:06 2020
@author: Kanaru Sato
"""
N, K = list(map(int, input().split()))
count = 1
while N >= K:
    N /= K
    count += 1
print(count)

-Created on Sun Mar  1 14:25:07 2020 +Created on Mon Mar  2 23:52:06 2020 -r = N -res = 0 -while r >= K: -    r /= K -    res += 1 -print((res + 1)) +count = 1 +while N >= K: +    N /= K +    count += 1 +print(count)