Rubik's cube
Time Limit: 1 sec
The Problem
In a Rubik's cube has 6 different colors and each color has N x N color pieces. In this problem, you will be given one integer number N as input. Write a simple program that print the total number of color pieces in N x N x N Rubik’s cube.
For example in 3 x 3 x 3 Rubik’s cube have 6 x 3 x 3 = 54 color pieces.
The Input
There are several lines of input in the input file. Each line contains one integer numbers N (0<N<15). Input is terminated by EOF.
The Output
For each line of input you have to print a line of output, this line contains an integer which is the total number of color pieces in N x N x N Rubik’s cube.
Sample Input
2
3
Sample Output
24
54
[Outsbook Round #2 Online Contest]
Problem Setter: Shahin ShamS