Triangles
Very easy
Execution time limit is 1 second
Runtime memory usage limit is 128 megabytes
Mike likes to draw triangles, but he does it in an unusual way. First he draws an arbitrary triangle, then divides each side into equal parts and draws through the partition points the lines parallel to sides of triangle. As a result he gets a number of triangles equal to each other. Help Mike to find the maximum number of identical triangles in his final picture.
Input
One integer .
Output
The maximum number of triangles equal to each other.
Examples
Input #1
Answer #1
Submissions 8K
Acceptance rate 45%