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