Let the points $M$ and $N$ in the triangle $ABC$ be the midpoints of the sides $BC$ and $AC$, respectively. It is known that the point of intersection of the altitudes of the triangle $ABC$ coincides with the point of intersection of the medians of the triangle $AMN$. Find the value of the angle $ABC$.