The points $A', B', C', D'$ are selected respectively on the sides $AB, BC, CD, DA$ of the cyclic quadrilateral $ABCD$. It is known that $AA' = BB' = CC' = DD'$ and \[\angle AA'D' =\angle BB'A' =\angle CC'B' =\angle DD'C'.\]Prove that $ABCD$ is a square.