3. Four distinct digits $a, b, c, d$ satisfy: $\overline{a b c d}$, $\overline{a b c}$, and $d$ are all perfect squares, and $\overline{a b c}$ is divisible by $d$. Therefore, the four-digit number $\overline{a b c d}$ is $\qquad$ .
$3249$