Skip to main content
Tuesday (24.11.2026) at 20:00: ALGOR Contest: Round #4 (Special Challenge) starts!

~/algor $ cat problems/begin-muntazam-oltiburchak

Regular hexagon

Medium 1000 ms 64 MB 36%
Share

The side $a$ of a regular hexagon is given. Segments from the centre to the vertices split it into $6$ equilateral triangles with side $a$. Find the area $S$ of the hexagon and the radius $r$ of its inscribed circle:

$$S = 6 * \frac{\sqrt{3}}{4} * a^{2}, \qquad r = \frac{\sqrt{3}}{2} * a$$

A regular hexagon with side a; segments from the centre to the vertices and the inscribed circle of radius r

Input

One positive integer $a$.

Output

One line with two numbers: $S$ and $r$, each with exactly 2 digits after the decimal point (for example, 10.39).

Note

$1 \le a \le 10^{4}$

Examples

Input #1
2
Output #1
10.39 1.73
Input #2
1
Output #2
2.60 0.87

Sign in to submit a solution

Signing up is free and takes a minute.