def solve():
    N,K = [int(i) for i in input().split()]

    digits = 1
    while N >= K:
        digits += 1
        N /= K

    print(digits)

if __name__ == "__main__":
    solve() def solve():
    N,K = [int(i) for i in input().split()]

    digits = 1
    while N >= K:
        digits += 1
        N /= K

    print(digits) solve int(i) for i in input().split() for i in input().split() i input().split() ().split () input split for i in input().split() int(i) int i N,K = [int(i) for i in input().split()] N [int(i) for i in input().split()] K digits = 1 digits 1 while N >= K:
        digits += 1
        N /= K

     N >= K N K digits += 1 digits 1 N /= K N K print(digits) print digits if __name__ == "__main__":
    solve() __name__ == "__main__" __name__ "__main__" solve() solve def solve():
    N,K = [int(i) for i in input().split()]

    digits = 1
    while N >= K:
        digits += 1
        N /= K

    print(digits) def solve():
    N,K = [int(i) for i in input().split()]

    digits = 1
    while N >= K:
        digits += 1
        N /= K

    print(digits) solve
def solve():
    N,K = [int(i) for i in input().split()]

    digits = 1
    while N >= K:
        digits += 1
        N /= K

    print(digits)

if __name__ == "__main__":
    solve()