#include<stdio.h>
#include<string.h>
#include<math.h>
int main(void)
{
	int a,s[8],d,f,g,h,i,j;
	char z[8];
	while(1){
		scanf("%s",z);
		if(z[0]=='0') break;
		j=0;
		for(i=1;i<7;i+=2){
			if(z[i]=='8'||z[i]=='9'||z[i]=='a'||z[i]=='b'||z[i]=='c'||z[i]=='d'||z[i]=='e'||z[i]=='f'){
				s[j]=1;
			}
			else s[j]=0;
			j++;
		}
		if(s[0]==1){
			if(s[1]==1){
				if(s[2]==1) printf("white\n");
				else printf("yellow\n");
			}
			else{
				if(s[2]==1) printf("fuchsia\n");
				else printf("red\n");
			}
		}
		else{
			if(s[1]==1){
				if(s[2]==1) printf("aqua\n");
				else printf("lime\n");
			}
			else{
				if(s[2]==1) printf("blue\n");
				else printf("black\n");
			}
		}
	}
	return 0;
}