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

~/algor $ cat problems/begin-parallelepiped

Rectangular box

Easy 1000 ms 64 MB 8%
Share

The length $a$, width $b$ and height $c$ of a rectangular box (cuboid) are given. Find its volume $V$ and total surface area $S$:

$$V = a * b * c, \qquad S = 2 * (a * b + b * c + a * c)$$

A rectangular box: length a, width b, height c

Input

One line with three positive integers: $a$, $b$ and $c$.

Output

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

Note

$1 \le a, b, c \le 10^{5}$

Examples

Input #1
2 3 4
Output #1
24 52
Input #2
1 1 1
Output #2
1 6

Sign in to submit a solution

Signing up is free and takes a minute.