On the sides of a non-obtuse triangle $ABC$ a square, a regular $n$-gon and a regular $m$-gon ($m$,$n > 5$) are constructed externally, so that their centers are vertices of a regular triangle. Prove that $m = n = 6$ and find the angles of $\triangle ABC$.
Problem
Source: Bulgaria 1998 Problem 3
Tags: trigonometry, complex numbers, geometry proposed, geometry