Skip to main content

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

AM. Rhombus

Problem AM ICPC rules 1000 ms 64 MB

The diagonals of a rhombus and are given. The diagonals are perpendicular and bisect each other. Find the area and perimeter of the rhombus; is its side:

A rhombus: diagonals d1 and d2 cross at a right angle, side a

Input

One line with two positive integers: and .

Output

One line with two numbers: — with exactly 1 digit after the decimal point (for example, 24.0), — with exactly 3 digits after the decimal point (for example, 20.000).

Note

Examples

Input #1
6 8
Output #1
24.0 20.000
Input #2
2 2
Output #2
2.0 5.657

Sign in to submit a solution

Signing up is free and takes a minute.