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.
InputThe only line of input contains one integer $$$n$$$ — the number of vertices of a regular polygon ($$$3 \le n \le 10^9$$$).
OutputThe output line should contain a single integer — the number of isosceles triangles with vertices that are the vertices of the polygon.
ExamplesInput3Output
1Input
5Output
10Note
An isosceles triangle is a triangle that has at least two equal sides.