Problem

Source: Kyiv mathematical festival 2018

Tags: Kyiv mathematical festival, geometry, tangent circles



Let $M$ be the intersection point of the medians $AD$ and $BE$ of a right triangle $ABC$ ($\angle C=90^\circ$),\linebreak $\omega_1$ and $\omega_2$ be the circumcircles of triangles $AEM$ and $CDM.$ It is known that the circles $\omega_1$ and $\omega_2$ are tangent. Find the ratio in which the circle $\omega_1$ divides $AB.$