Hide

Problem N
Colour Analysis

Languages en is
/problems/litagreining/file/statement/en/img-0001.png
Image taken from commons.wikimedia.org

Jón and Gunna argue sometimes about what colour a particular thing is. Is the wall green or a yellowish green, is the dress blue or gold and so on. To solve this problem they have obtained a measuring device that measures the reflecting light in red, green and blue and outputs three numbers. This has however not solved the problem because now they simply disagree on which values correspond to which colour. Thus they now need a program which takes care of this issue.

All three values are integers from $0$ to $255$ and we denote them by $R$, $G$ and $B$. If $R$ is strictly greater than the other values the answer is raudur. If $G$ is strictly greater than the other values the answer is graenn. If $B$ is strictly greaser than the other values the answer is blar. If $R = G$ and $B$ is strictly smaller than the other values the answer is gulur. If $R = B$ and $G$ is strictly smaller than the other values the answer is fjolubleikur. If $G = B$ and $R$ is strictly smaller than the other values the answer is blagraenn. If all values are equal to $0$ the answer is svartur. If all values are equal to $255$ the answer is hvitur. If all values are equal, but not equal to $0$ nor $255$, the answer is grar. Otherwise if none of the above applies the answer is othekkt.

Input

The input consists of a single line with three integers $R$, $G$ and $B$ which are separated by spaces. It will hold that $0 \leq R, G, B \leq 255$.

Output

Output the colour that the values correspond to, as described above.

Scoring

Group

Points

Constraints

1

50

$R, G$ and $B$ are different.

2

50

No further constraints.

Sample Input 1 Sample Output 1
200 20 25
raudur
Sample Input 2 Sample Output 2
78 78 78
grar
Sample Input 3 Sample Output 3
30 170 170
blagraenn

Please log in to submit a solution to this problem

Log in