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

~/algor $ cat problems/doira-elementlari

Parts of a circle

Medium 1000 ms 64 MB 43%
Share

One of the elements of a circle is given: $1$ — radius $R$, $2$ — diameter $D$, $3$ — circumference $L$, $4$ — area $S$. They are related by:

$$D = 2 * R, \qquad L = 2 * \pi * R, \qquad S = \pi * R^{2}$$

Use $\pi = 3.14$. The element number $N$ and its value $X$ are given. Find the other three elements.

The radius, diameter, circumference and area of a circle

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 ($R$, $D$, $L$, $S$ without the given one), each with exactly 2 digits after the decimal point (for example, 20.00 62.80 314.00).

Note

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

Examples

Input #1
1 10
Output #1
20.00 62.80 314.00
Input #2
3 1
Output #2
0.16 0.32 0.08

Sign in to submit a solution

Signing up is free and takes a minute.