#include <cstdio>
using namespace std;

const char *name[] = {
	"black", "blue", "lime", "aqua", "red", "fuchsia", "yellow", "white",
};

int main(){
	int r, g, b;
	while(scanf(" #%2x%2x%2x", &r, &g, &b) == 3){
		puts(name[(r > 127) * 4 + (g > 127) * 2 + (b > 127)]);
	}
}