E. Easy Convex Polygon Problem (Extreme Version)
time limit per test
15 seconds
memory limit per test
1024 megabytes
input
standard input
output
standard output

After competing virtually in all CodeForces rounds of the past three years, Geosé finally mastered graph problems. Graph coloring became his favorite topic in graph theory. While looking for a problem that combines this topic and geometry, he came up with the following problem:

You are given a convex polygon with $$$n$$$ vertices. For each pair of vertices, a line segment connecting them is drawn. Note that $$$\binom{n}{2}$$$ segments are drawn in total.

You must assign a color to each segment. A coloring is said to be valid if it satisfies the following condition:

  • If two segments do not intersect, they must have different colors.

Two segments are considered to intersect if they share at least one common point, including endpoints. In particular, segments that share a vertex are also considered intersecting.

The problem asked to determine the minimum number of colors required to obtain a valid coloring. The first approach that Geosé tried was to write down the number of lines that are drown when $$$n$$$ vertices are given. Help Geosé to verify that the numbers that he wrote down are correct. Given $$$n$$$, print the number of lines that are drown.

Input

The input contains a single integer $$$n$$$ ($$$1 \leq n \leq 10$$$)  — the number of vertices in the polygon.

Output

For each test case, print the number of lines that are drawn.

Examples
Input
1
Output
0
Input
3
Output
3
Input
10
Output
45