In triangle $ABC$, the angles $\alpha=\angle A$ and $\beta=\angle B$ are acute. The isosceles triangle $ACD$ and $BCD$ with the bases $AC$ and $BC$ and $\angle ADC=\beta$, $\angle BEC=\alpha$ are constructed in the exterior of the triangle $ABC$. Let $O$ be the circumcenter of $\triangle ABC$. Prove that $DO+EO$ equals the perimeter of triangle $ABC$ if and only if $\angle ACB$ is right.