9. From a vertex of a regular $n$-sided polygon, draw $n-3$ diagonals. The sum of all angles (only considering angles less than $180^{\circ}$) formed by any two of these diagonals is $1800^{\circ}$. Then $n=$ $\qquad$ .
$12$