传统题 1000ms 256MiB

[COCI][2006][C2] SJECIŠTA

该比赛已结束,您无法在比赛模式下递交该题目。您可以点击“在题库中打开”以普通模式查看和递交本题。

Description

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.



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

Format

Input

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

Output

Output the number of intersections on a single line.

Samples

3
0
4
1
6
15

RP水友赛

未参加
状态
已结束
规则
IOI
题目
14
开始于
2022-2-23 8:00
结束于
2022-2-23 12:00
持续时间
4 小时
主持人
参赛人数
7