e-olymp
Problems

Play hockey this...

Play hockey this...

prb1326Forest residents have decided to hold a hockey tournament between the N teams. How many ways can be distributed sets of gold, silver and bronze medals, if one prize may take only one team?

Input

In a single line located a unique natural number N, does not exceed 100.

Output

Single number - the required number of ways.

Time limit 0.18 seconds
Memory limit 22.89 MiB
Input example
17
Output example
4080
Author Анатолий Присяжнюк