Problem

Source: I International Festival of Young Mathematicians Sozopol 2010, Theme for 10-12 grade

Tags: geometry, polygon



Let $M$ be a convex polygon. Externally, on its sides are built squares. It is known that the vertices of these squares, that don’t lie on $M$, lie on a circle $k$. Determine $M$ (its type).