~/algor $ cat problems/teng-tomonli-uchburchak
Equilateral triangle
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.
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
1 1
0.29 0.58 0.43
1 2
0.58 1.15 1.73