Fragmentation#2810

Fragmentation

1 second
64 megabytes
Easy

Determine how many regions a convex polygon is divided into by all its diagonals, provided that no three diagonals intersect at a single point.

Input

The first line contains a single integer (3 \leq N \leq 50000) — the number of vertices of the polygon.

Output

Output a single integer — the number of regions.

Examples

Example 1

Loading
Loading