Right Triangle

Time limit1sMemory limit128 MB

Problem

The ancient Egyptians knew that a triangle with side lengths 3, 4, and 5 is a right triangle. Given the lengths of the three sides of a triangle, decide whether it is a right triangle.

Input

The input consists of several test cases. Each test case is a line with three side lengths, each a positive integer less than $30{,}000$.

The input ends with a line containing 0 0 0, which is not a test case and must not be processed.

Output

For each test case, print right if the three sides form a right triangle, and wrong otherwise.