~/algor $ cat contests/round-7/AP
AP. Regular hexagon
Problem AP
ICPC rules
1000 ms
64 MB
The side of a regular hexagon is given. Segments from the centre to the vertices split it into equilateral triangles with side . Find the area of the hexagon and the radius of its inscribed circle:
Input
One positive integer .
Output
One line with two numbers: and , each with exactly 2 digits after the decimal point (for example, 10.39).
Note
Examples
Input #1
2
Output #1
10.39 1.73
Input #2
1
Output #2
2.60 0.87