#K38027. Polygon Descriptor

    ID: 26107 Type: Default 1000ms 256MiB

Polygon Descriptor

Polygon Descriptor

Given an integer representing the number of sides of a polygon, determine its type based on the following conditions:

  • If the number of sides is 3, the polygon is a triangle.
  • If the number of sides is 4, the polygon is a quadrilateral.
  • If the number of sides is 5, the polygon is a pentagon.
  • If the number of sides is 6, the polygon is a hexagon.
  • If the number of sides is 7, the polygon is a heptagon.
  • If the number of sides is 8, the polygon is a octagon.
  • For any other number (including invalid values such as less than 3), output "Too many sides".

The relation can be expressed by the formula in \( \LaTeX \):

\( f(s) = \begin{cases} \text{triangle} & \text{if } s = 3,\\ \text{quadrilateral} & \text{if } s = 4,\\ \text{pentagon} & \text{if } s = 5,\\ \text{hexagon} & \text{if } s = 6,\\ \text{heptagon} & \text{if } s = 7,\\ \text{octagon} & \text{if } s = 8,\\ \text{Too many sides} & \text{otherwise.} \end{cases} \)

inputFormat

The input consists of a single line containing an integer \( s \) (\( s \in \mathbb{Z} \)).

You should read the input from standard input (stdin).

outputFormat

Output a single line which is a string describing the type of polygon according to the given rules.

The output should be sent to standard output (stdout).

## sample
3
triangle

</p>