RC = 0 BC = 0 for i in range(3): N = input() if N == "RED": RC += 1 elif N == "BLUE": BC += 1 if RC > BC: print("RED") elif RC < BC: print("BLUE")