EGMO 2013, problem 1. The side \(\textrm{BC}\) of the triangle \(\textrm{ABC}\) is extended beyond \(\textrm{C}\) to \(\textrm{D}\) so that \(\textrm{CD} = \textrm{BC}\). The side \(\textrm{CA}\) is extended beyond \(\textrm{A}\) to \(\textrm{E}\) so that \(\textrm{AE} = 2\textrm{CA}\). Prove that if \(\textrm{AD} = \textrm{BE}\), then the triangle \(\textrm{ABC}\) is right-angled.