Triangles in the polygon#1323

Triangles in the polygon

1 second
64 megabytes
Very easy

In a convex -gon, all diagonals are drawn so that no three of them intersect at a single point. How many different triangles are formed?

Input

Each line is a separate test and contains a positive integer (2 < n \leq 1000).

Output

For each test, output on a separate line the number of different triangles formed after all diagonals are drawn.

Examples

Example 1

Loading
Loading