You are given the numbers $x$ and $d$. Your task is to find any array that simultaneously satisfies the following criteria:
\begin{itemize}
\item $a_1\times a_2 \times \dots \times a_n=x$, where $n$ is the size of your array;
\item $1\le a_i\le d$ for each $1\le i\le n$;
\item the size of the array is minimal possible.
\end{itemize}