You have a cube with each edge measuring length a. Find out the surface area and the volume of the cube.
A cube has 6 sides and the formulae for the area and volume are:
Surface Area = 6a2
Volume = a3
One line with an integer denoting the side-length of the cube.
2 space-separated integers denoting the surface area and volume of the cube respectively.
7
294 343
0 < a <= 100