// Tazoe

#include <iostream>
#include <string>
using namespace std;

int main()
{
	while(true){
		string S;
		cin >> S;

		if(S=="0")
			break;

		if(S[1]>='0'&&S[1]<='7'){
			if(S[3]>='0'&&S[3]<='7'){
				if(S[5]>='0'&&S[5]<='7'){
					cout << "black" << '\n';
				}
				else{
					cout << "blue" << '\n';
				}
			}
			else{
				if(S[5]>='0'&&S[5]<='7'){
					cout << "lime" << '\n';
				}
				else{
					cout << "aqua" << '\n';
				}
			}
		}
		else{
			if(S[3]>='0'&&S[3]<='7'){
				if(S[5]>='0'&&S[5]<='7'){
					cout << "red" << '\n';
				}
				else{
					cout << "fuchsia" << '\n';
				}
			}
			else{
				if(S[5]>='0'&&S[5]<='7'){
					cout << "yellow" << '\n';
				}
				else{
					cout << "white" << '\n';
				}
			}
		}
	}

	return 0;
}