All vertices of an equilateral triangle lie on the sides of a right triangle. One of the sides of the equilateral triangle is parallel to the hypotenuse and its length is three times smaller than the length of the hypotenuse. Find the angles of the right triangle.