On the sides of the triangle $ABC$ externally constructed right triangles $ABC_1$, $BCA_1$, $CAB_1$. Prove that the points of intersection of the medians of the triangles $ABC$ and $A_1B_1C_1$ coincide.
Problem
Source: 2010 XIII All-Ukrainian Tournament of Young Mathematicians, Qualifying p15
Tags: geometry, Centroid, right triangle, Ukrainian TYM