#include<bits//stdc++.h>
using namespace std;
string s, x[2][2][2] = { {{"black","blue"}, {"lime","aqua"}}, { {"red","fuchsia"}, {"yellow","white"} } },T = "89abcdef";
int main() {
	while (1) {
		int a = 0, b = 0, c = 0;cin >> s;
		if (s == "0") { break; }
		for (int i = 0; i < 8; i++) if (T[i] == s[1]) a++;
		for (int i = 0; i < 8; i++) if (T[i] == s[3]) b++;
		for (int i = 0; i < 8; i++) if (T[i] == s[5]) c++;
		cout << x[a][b][c] << endl;
	}
}
