Isosceles triangles

아직 제출이 없습니다시간 제한1초메모리 제한512 MB

문제

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

입력

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

출력

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

힌트

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