#include using namespace std; #ifdef LOCAL #include "settings/debug.cpp" #else #define Debug(...) void(0) #endif #define rep(i, n) for (int i = 0; i < (n); ++i) using ll = long long; using ull = unsigned long long; int main() { int n; cin >> n; vector cnt(7, 0); const vector colors = { "Red", "Orange", "Yellow", "Green", "Cyan", "Blue", "Violet" }; auto f = [&](string s) { rep(i, 7) if (colors[i] == s) return i; assert(false); }; rep(_, n) { string s; cin >> s; cnt[f(s)]++; } rep(_, n - 1) { string s; cin >> s; cnt[f(s)]--; } rep(i, 7) { if (cnt[i] > 0) cout << colors[i] << endl; } return 0; }