#00034B

Sjecišta

Consider a convex polygon with N vertices, with the additional property that no three diagonals intersect in a single point. Find the number of intersections between pairs of diagonals in such a polygon. The figure below shows one such polygon with 6 vertices.

Image: dsadsa
Note: a polygon is convex if all of its interior angles are less than 180 degrees.


Inputhe first and only line of input contains a single integer N, 3 ≤ N ≤ 100.

OutputOutput the number of intersections on a single line.

Input
3
Output
0

Input
4
Output
1

Submit solution

Coming later

The grading service will be connected in a later migration step. You can inspect the task and your previous results now.