n,k = map(int, input().split())
for i in range(32):
    if k**i <= n < k**(i+1):
        print(i+1)
        break n,k = map(int, input().split()) n map(int, input().split()) map int input().split() ().split () input split k for i in range(32):
    if k**i <= n < k**(i+1):
        print(i+1)
        break i range(32) range 32 if k**i <= n < k**(i+1):
        print(i+1)
        break k**i <= n < k**(i+1) k**i <= n k**i k i n k**(i+1) k i+1 i 1 print(i+1) print i+1 i 1 break k = map(int, input().split()) map(int, input().split()) k n,k = map(int, input().split()) map(int, input().split()) n
n,k = map(int, input().split())
for i in range(32):
    if k**i <= n < k**(i+1):
        print(i+1)
        break