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

int main(){
  string data;
  int f1,f2;

  while(1){
    getline(cin,data);
    if(data[0] == '0') return 0;
    f1 = f2 = 0
    for(int i = 0; i  < 10; i++){
      if(data[1] == i)
	f1 = 1;
      if(data[2] == i)
	f2 = 1;
    }
    if(fa == 1&&f2 == 1){
      data[1] = 0;
      data[2] = 0;
    }else{
      data[1] == f;
      data[2] == f;
    } 
    for(int i = 0; i  < 10; i++){
      if(data[3] == i)
	f1 = 1;
      if(data[4] == i)
	f2 = 1;
    }
    if(fa == 1&&f2 == 1){
      data[3] = 0;
      data[4] = 0;
    }else{
      data[3] == f;
      data[4] == f;
    } 
    for(int i = 0; i  < 10; i++){
      if(data[5] == i)
	f1 = 1;
      if(data[6] == i)
	f2 = 1;
    }
    if(fa == 1&&f2 == 1){
	    data[5] = 0;
	    data[6] = 0;
    }else{
      data[5] == f;
      data[6] == f;
    } 
    
    if(data[1] == 0 && data[2] == 0){
      if(data[3] == 0&& data[4] == 0){
	if(data[5] == 0&& data[6] == 0){
	  cout << "black" <<endl;
	}else{
	  cout << "blue" << endl;
	}
      }
      else{
	if(data[5] == 0&&data[6] == 0){
	  cout << "linme" << endl;
	  }else{
	  cout << "aqua" << endl;
	}
      }
    }
    if(data[1] == f && data[2] == f){
      if(data[3] == f&& data[4] == f){
	if(data[5] == f&& data[6] == f){
	  cout << "white" <<endl;
	}else{
	  cout << "yellow"<< endl;
	}
      }
      else{
	if(data[5] == 0&&data[6] == 0){
	  cout << "red" << endl;
	  }else{
	  cout << "fuchsia" << endl;
	}
      }
    }
  }
  return 0;
}