
def main():
    n, k = map(int, input().split(" "))
    cnt = 0
    while n > 0:
        n //= k
        cnt += 1
    print(cnt)

if __name__ == "__main__":
    main() def main():
    n, k = map(int, input().split(" "))
    cnt = 0
    while n > 0:
        n //= k
        cnt += 1
    print(cnt) main n, k = map(int, input().split(" ")) n map(int, input().split(" ")) map int input().split(" ") ().split () input split " " k cnt = 0 cnt 0 while n > 0:
        n //= k
        cnt += 1
     n > 0 n 0 n //= k n k cnt += 1 cnt 1 print(cnt) print cnt if __name__ == "__main__":
    main() __name__ == "__main__" __name__ "__main__" main() main def main():
    n, k = map(int, input().split(" "))
    cnt = 0
    while n > 0:
        n //= k
        cnt += 1
    print(cnt) def main():
    n, k = map(int, input().split(" "))
    cnt = 0
    while n > 0:
        n //= k
        cnt += 1
    print(cnt) main

def main():
    n, k = map(int, input().split(" "))
    cnt = 0
    while n > 0:
        n //= k
        cnt += 1
    print(cnt)

if __name__ == "__main__":
    main()