#K42097. Cuboid Properties Calculation

    ID: 27011 Type: Default 1000ms 256MiB

Cuboid Properties Calculation

Cuboid Properties Calculation

Given the dimensions of a cuboid: length, width, and height, compute its volume and surface area.

The volume is calculated as \(V = X \times Y \times Z\), and the surface area is given by \(S = 2\,(XY + YZ + ZX)\).

You are required to read inputs from the standard input (stdin) and output the results to the standard output (stdout).

inputFormat

The input consists of three space-separated integers \(X\), \(Y\), and \(Z\) representing the length, width, and height of the cuboid, respectively.

outputFormat

Output two integers: the volume and the surface area of the cuboid, separated by a space.

## sample
3 4 5
60 94