Skip to main content

~/algor $ cat contests/round-7/AL

AL. Medians of a triangle

Problem AL ICPC rules 1000 ms 64 MB

The sides of a triangle , and are given. Find the medians , and drawn to these sides. A median is a segment joining a vertex of the triangle with the midpoint of the opposite side:

A triangle with sides a, b and c; the midpoint of side a is joined to the opposite vertex — the median m_a

Input

One line with three positive integers: , and .

Output

One line with three numbers: , and , each with exactly 2 digits after the decimal point (for example, 4.27).

Note


Such a triangle exists: the sum of any two sides is greater than the third.

Examples

Input #1
3 4 5
Output #1
4.27 3.61 2.50
Input #2
6 6 6
Output #2
5.20 5.20 5.20

Sign in to submit a solution

Signing up is free and takes a minute.