Dominoes are gaming pieces used in numerous tile games. Each domino piece contains two marks. Each mark consists of a number of spots (possibly zero). The number of spots depends on the set size. Each mark in a size
Write a program that will determine the total number of spots on all tiles of a complete size
Input Specification
The first and only line of input contains a single integer,
Output Specification
The first and only line of output should contain a single integer, total number of spots in a complete size
Sample Input 1
2
Sample Output 1
12
Sample Input 2
3
Sample Output 2
30
Explanation for Sample Output 2
Size 3 set contains tiles:
[0|0], [0|1], [0|2], [0|3], [1|1], [1|2], [1|3], [2|2], [2|3] and [3|3].
Sample Input 3
15
Sample Output 3
2040
Comments