Web colors are the colors used to display web pages. A single color is given either as an RGB triple or as the English name of that color. A color is set by the intensity of its red, green and blue components, and each component takes eight bits, so one web color needs 24 bits and there are 16,777,216 web colors in total. The HTML 4 specification names only the 16 colors in the table below.
Mapping an arbitrary color to one of the named HTML colors is a common task. This problem asks for that mapping in RGB space.
The color closest to a given color is the one at the smallest Euclidean distance. If the color to map is (r,g,b) and the 16 HTML colors are (R1,G1,B1) through (R16,G16,B16), the closest color minimizes
d=(Ri−r)2+(Gi−g)2+(Bi−b)2
where i is an integer from 1 to 16.
| # | Name | Red | Green | Blue |
|---|---|---|---|---|
| 1 | White | 255 | 255 | 255 |
| 2 | Silver | 192 | 192 | 192 |
| 3 | Gray | 128 | 128 | 128 |
| 4 | Black | 0 | 0 | 0 |
| 5 | Red | 255 | 0 | 0 |
| 6 | Maroon | 128 | 0 | 0 |
| 7 | Yellow | 255 | 255 | 0 |
| 8 | Olive | 128 | 128 | 0 |
| 9 | Lime | 0 | 255 | 0 |
| 10 | Green | 0 | 128 | 0 |
| 11 | Aqua | 0 | 255 | 255 |
| 12 | Teal | 0 | 128 | 128 |
| 13 | Blue | 0 | 0 | 255 |
| 14 | Navy | 0 | 0 | 128 |
| 15 | Fuchsia | 255 | 0 | 255 |
| 16 | Purple | 128 | 0 | 128 |
The input holds several test cases. Each test case is one line with three integers r, g, b (0≤r,g,b≤255), the red, green and blue intensities of a color.
The last line of the input is -1 -1 -1 and is not processed.
For each test case, print on its own line the name of the HTML color closest to the given color, spelled as in the table. If two or more colors are equally close, print the name of the one with the smaller number in the table.