AlgoBazaAlgoBaza
Back to tasks

The kind of triangle

Beginner

Python for kids 路 Lesson 30: Contest tasks with conditions

Problem Statement

Read the lengths of three sides. If no triangle can be built from them, print NIE. Otherwise print ROWNOBOCZNY (equilateral - all sides equal), ROWNORAMIENNY (isosceles - exactly two equal) or ROZNOBOCZNY (scalene).

Input Format

Three whole numbers, each on its own line (1..1000).

Output Format

NIE, ROWNOBOCZNY, ROWNORAMIENNY or ROZNOBOCZNY.

Examples
Example 1

Input

5
5
8

Output

ROWNORAMIENNY
Example 2

Input

3
4
5

Output

ROZNOBOCZNY
Example 3

Input

1
2
3

Output

NIE