n, k  =  map(int,input().split())

if n == 1:
    print(1)
else:
    a=1
    ans = 0
    while a<=n:
        a *=k
        ans += 1

    print(ans) n, k  =  map(int,input().split()) n map(int,input().split()) map int input().split() ().split () input split k if n == 1:
    print(1)
else:
    a=1
    ans = 0
    while a<=n:
        a *=k
        ans += 1

    print(ans) n == 1 n 1 print(1) print 1 a=1 a 1 ans = 0 ans 0 while a<=n:
        a *=k
        ans += 1

     a<=n a n a *=k a k ans += 1 ans 1 print(ans) print ans ans = 0 0 ans k  =  map(int,input().split()) map(int,input().split()) k a *=k k a ans += 1 1 ans n, k  =  map(int,input().split()) map(int,input().split()) n a=1 1 a
n, k  =  map(int,input().split())

if n == 1:
    print(1)
else:
    a=1
    ans = 0
    while a<=n:
        a *=k
        ans += 1

    print(ans)
