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