$\textrm{according to the question it structures look like $n*n$ square.}$
$\textrm{there are $n^{th}$ row and each row is dividing into $n^{th}$ coloum.}$
$\textrm{now it’s given that $5$ men's are extra here.}$
$\implies$ $n*n=17429-5$
$\implies$ $n^2=17424$
$\implies$ $n=132$
$\textrm{so the number of men in front row is 132.}$