~/algor $ cat problems/begin-romb
Rhombus
Medium
1000 ms
64 MB
35%
The diagonals of a rhombus $d_{1}$ and $d_{2}$ are given. The diagonals are perpendicular and bisect each other. Find the area $S$ and perimeter $P$ of the rhombus; $a$ is its side:
$$S = \frac{d_{1} * d_{2}}{2}, \qquad a = \sqrt{\left(\frac{d_{1}}{2}\right)^{2} + \left(\frac{d_{2}}{2}\right)^{2}}, \qquad P = 4 * a$$
Input
One line with two positive integers: $d_{1}$ and $d_{2}$.
Output
One line with two numbers: $S$ — with exactly 1 digit after the decimal point (for example, 24.0), $P$ — with exactly 3 digits after the decimal point (for example, 20.000).
Note
$1 \le d_{1}, d_{2} \le 10^{4}$
Examples
Input #1
6 8
Output #1
24.0 20.000
Input #2
2 2
Output #2
2.0 5.657