cs = ["Red", "Orange", "Yellow", "Green", "Cyan", "Blue", "Violet"] cnt = {cs[i]: 0 for i in range(7)} N = int(input()) A = list(input().split()) B = list(input().split()) for i in range(N - 1): cnt[A[i]] += 1 cnt[B[i]] -= 1 cnt[A[N - 1]] += 1 for c in cs: if cnt[c] > 0: print(c)