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

~/algor $ cat problems/teng-tomonli-uchburchak

Equilateral triangle

Medium 1000 ms 64 MB 44%
Share

One of the elements of an equilateral triangle is given: $1$ — side $a$, $2$ — radius of the inscribed circle $R_{1}$, $3$ — radius of the circumscribed circle $R_{2}$, $4$ — area $S$. They are related by:

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

The element number $N$ and its value $X$ are given. Find the other three elements.

An equilateral triangle with its inscribed and circumscribed circles

Input

One line with an element number $N$ and its value $X$.

Output

One line with the other three elements in order of their numbers ($a$, $R_{1}$, $R_{2}$, $S$ without the given one), each with exactly 2 digits after the decimal point (for example, 0.29 0.58 0.43).

Note

$1 \le N \le 4$
$0 \lt X \le 100$, $X$ is an integer

Examples

Input #1
1 1
Output #1
0.29 0.58 0.43
Input #2
1 2
Output #2
0.58 1.15 1.73

Sign in to submit a solution

Signing up is free and takes a minute.