In a secrete factory an absolutely proper cheese with holes is produced. The holes in the proper cheese are ideal spheres. The cheese is produced by large cubes, cut into smaller cubes and sent into the market. It is necessary that the mass center is in the exact geometrical center of the cube, otherwise the cheese is not ideal. 5% deviation of the edge length is acceptable.
Task. Find coordinates of the mass center of the cheese cube assuming that its edges are in parallel with the axes and the geometrical center is in the origin of the coordinates.
Streams. Input stream contains a real number l — cube’s edge length; integer n ; quantity of holes (less than 16); real numbers xi, yi, zi — coordinates of center of each hole and a real number Ri — radius of each hole. Output stream should contain three real numbers with accuracy up to 2 signs after the decimal point divided by spaces.
3 15 2 4
10.2 13 15 4
5 5.5 5.8 2
-0.06 -0.12 -0.07