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

ke = 1
while(True):
    if(n<k):
        print(ke)
        break
    else:
        n = n//k
        ke += 1 n,k = map(int,input().split()) n map(int,input().split()) map int input().split() ().split () input split k ke = 1 ke 1 while(True):
    if(n<k):
        print(ke)
        break
    else:
        n = n//k
        ke += 1 True if(n<k):
        print(ke)
        break
    else:
        n = n//k
        ke += 1 n<k n k print(ke) print ke break n = n//k n n//k n k ke += 1 ke 1 n,k = map(int,input().split()) map(int,input().split()) n ke = 1 1 ke k = map(int,input().split()) map(int,input().split()) k ke += 1 1 ke n = n//k n//k n
n,k = map(int,input().split())

ke = 1
while(True):
    if(n<k):
        print(ke)
        break
    else:
        n = n//k
        ke += 1