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

~/algor $ cat problems/begin-shar

Volume and surface of a sphere

Medium 1000 ms 64 MB 34%
Share

The radius $R$ of a sphere is given. Find its volume $V$ and surface area $S$:

$$V = \frac{4}{3} * \pi * R^{3}, \qquad S = 4 * \pi * R^{2}$$

Use $\pi = 3.141592653589793$.

A sphere of radius R

Input

One positive integer $R$.

Output

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

Note

$1 \le R \le 1000$

Examples

Input #1
1
Output #1
4.19 12.57
Input #2
3
Output #2
113.10 113.10

Sign in to submit a solution

Signing up is free and takes a minute.