n,k = map(int,input().split())
digits = 0
while True:
    if n >= k**digits:
        digits += 1
    else:
        print(digits)
        exit() n,k = map(int,input().split()) n map(int,input().split()) map int input().split() ().split () input split k digits = 0 digits 0 while True:
    if n >= k**digits:
        digits += 1
    else:
        print(digits)
        exit() True if n >= k**digits:
        digits += 1
    else:
        print(digits)
        exit() n >= k**digits n k**digits k digits digits += 1 digits 1 print(digits) print digits exit() exit n,k = map(int,input().split()) map(int,input().split()) n k = map(int,input().split()) map(int,input().split()) k digits += 1 1 digits digits = 0 0 digits
n,k = map(int,input().split())
digits = 0
while True:
    if n >= k**digits:
        digits += 1
    else:
        print(digits)
        exit()