a = [input() for i in range(3)] if a.count("RED") > a.count("BLUE"): print("RED") else: print("BLUE")