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