import sys

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

if N<K:
    print(1)
    sys.exit()

M=K
R=1
while M<=N:
    M*=K
    R+=1
print(R) import sys sys N,K=map(int,input().split()) N map(int,input().split()) map int input().split() ().split () input split K if N<K:
    print(1)
    sys.exit() N<K N K print(1) print 1 sys.exit() sys.exit sys exit M=K M K R=1 R 1 while M<=N:
    M*=K
    R+=1 M<=N M N M*=K M K R+=1 R 1 print(R) print R R+=1 1 R M=K K M R=1 1 R N,K=map(int,input().split()) map(int,input().split()) N M*=K K M K=map(int,input().split()) map(int,input().split()) K
import sys

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

if N<K:
    print(1)
    sys.exit()

M=K
R=1
while M<=N:
    M*=K
    R+=1
print(R)