406575: GYM102443 F Isosceles triangles

Memory Limit:512 MB Time Limit:1 S
Judge Style:Text Compare Creator:
Submit:0 Solved:0

Description

F. Isosceles trianglestime limit per test1 secondmemory limit per test512 megabytesinputstandard inputoutputstandard output

You are given a regular polygon with $$$n$$$ vertices. You should find the number of isosceles triangles with vertices that are the vertices of the polygon.

Input

The only line of input contains one integer $$$n$$$ — the number of vertices of a regular polygon ($$$3 \le n \le 10^9$$$).

Output

The output line should contain a single integer — the number of isosceles triangles with vertices that are the vertices of the polygon.

ExamplesInput
3
Output
1
Input
5
Output
10
Note

An isosceles triangle is a triangle that has at least two equal sides.

加入题单

算法标签: