s = [input() for _ in range(3)]
d = {"RED": 0, "BLUE": 0}
for x in s:
    d[x] += 1
for k, v in d.items():
    if v >= 2:
        print(k)