Find the least positive integer $k$ such that for any $a \in [0, 1]$ and any positive integer $n$,  
\[a^k(1 - a)^n < \frac{1}{(n+1)^3}.\]

Let's think step by step and output the final answer within \boxed{}.
user