CF203D Hit Ball
Description
When Valera was playing football on a stadium, it suddenly began to rain. Valera hid in the corridor under the grandstand not to get wet. However, the desire to play was so great that he decided to train his hitting the ball right in this corridor. Valera went back far enough, put the ball and hit it. The ball bounced off the walls, the ceiling and the floor corridor and finally hit the exit door. As the ball was wet, it left a spot on the door. Now Valera wants to know the coordinates for this spot.
Let's describe the event more formally. The ball will be considered a point in space. The door of the corridor will be considered a rectangle located on plane $ xOz $ , such that the lower left corner of the door is located at point $ (0,0,0) $ , and the upper right corner is located at point $ (a,0,b) $ . The corridor will be considered as a rectangular parallelepiped, infinite in the direction of increasing coordinates of $ y $ . In this corridor the floor will be considered as plane $ xOy $ , and the ceiling as plane, parallel to $ xOy $ and passing through point $ (a,0,b) $ . We will also assume that one of the walls is plane $ yOz $ , and the other wall is plane, parallel to $ yOz $ and passing through point $ (a,0,b) $ .
We'll say that the ball hit the door when its coordinate $ y $ was equal to $ 0 $ . Thus the coordinates of the spot are point $ (x_{0},0,z_{0}) $ , where $ 0
Input Format
The first line contains three space-separated integers $ a,b,m $ $ (1
Output Format
Print two real numbers $ x_{0},z_{0} $ — the $ x $ and $ z $ coordinates of point $ (x_{0},0,z_{0}) $ , at which the ball hits the exit door. The answer will be considered correct, if its absolute or relative error does not exceed $ 10^{-6} $ .
Explanation/Hint
