~/algor $ cat contests/round-7/X
X. Two cars meet
Problem X
ICPC rules
1000 ms
64 MB
The distance between cities and is km. At the same moment, the first car leaves for at km/h, and the second car leaves for at km/h. After how many hours () do they meet, and how far from city (, km) is the meeting point?
Input
One line with three positive integers: , and .
Output
One line with two numbers: and , each with exactly 2 digits after the decimal point (for example, 3.00).
Note
Examples
Input #1
300 60 40
Output #1
3.00 180.00
Input #2
10 1 2
Output #2
3.33 3.33