Skip to main content

~/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?

The road between cities A and B (length S): a car at speed v1 leaves A and a car at speed v2 leaves B, driving towards each other; the meeting point is d away from A

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

Sign in to submit a solution

Signing up is free and takes a minute.