Misha loved drawing triangles, but he did it in an unusual way. First, he drew an arbitrary triangle. Then, he divided each of its sides into equal parts and drew lines through the division points, parallel to the sides of the triangle. As a result, a grid of identical triangles was formed.

One integer (0 < n < 2 \cdot 10^9).
Print the maximum number of equal triangles.
Example 1