#include using namespace std; using ll=long long; using ull=unsigned long long; #define rep(i,n) for(int i=0; i<(n); i++) #define READ_A_CHAR getchar_unlocked int readInt(){ int res=0; char c; while((c=READ_A_CHAR())!='\n') res=res*10+(c-'0'); return res; } void readUntil(char c){ while(READ_A_CHAR()!=c); } const char Colors[] = "ROYGCBV"; const char* Colors2[] = {"Red\n","Orange\n","Yellow\n","Green\n","Cyan\n","Blue\n","Violet\n"}; int getColorIdx(char c){ rep(t,7) if(Colors[t]==c) return t; } int main(){ int N=readInt(); int C[7]={}; rep(i,N-1) C[getColorIdx(READ_A_CHAR())]++, readUntil(' '); C[getColorIdx(READ_A_CHAR())]++, readUntil('\n'); rep(i,N-2) C[getColorIdx(READ_A_CHAR())]--, readUntil(' '); C[getColorIdx(READ_A_CHAR())]--, readUntil('\n'); rep(t,7) if(C[t]) printf(Colors2[t]); return 0; }