Each side of the convex quadrilateral was continued into both sides and on all eight extensions set aside equal segments. It turned out that the resulting $8$ points are the outer ends of the construction the given segments are different and lie on the same circle. Prove that the original quadrilateral is a square.