#include<stdio.h>
int main()
{
	char*s[]={"black","blue","lime","aqua","red","fuchsia","yellow","white"},x;
	int n;
	while(scanf(" %c%x",&x,&n),x-'0')
		puts(s[((n>>16)>127)*4+((n&0xff00)>32767)*2+((n&255)>127)]);
	return 0;
}