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

~/algor $ cat problems/kub

Cube

Easy 1000 ms 64 MB 8%
Share

The edge of a cube $a$ is given. Find its volume $V$ and total surface area $S$:

$$V = a^{3}, \qquad S = 6 * a^{2}$$

A cube, every edge is a

Input

One positive integer $a$.

Output

One line with two integers: $V$ and $S$.

Note

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

Examples

Input #1
2
Output #1
8 24
Input #2
1
Output #2
1 6

Sign in to submit a solution

Signing up is free and takes a minute.