A circle of radius $R$ is inscribed into an acute triangle. Three tangents to the circle split the triangle into three right angle triangles and a hexagon that has perimeter $Q$. Find the sum of diameters of circles inscribed into the three right triangles. (6)