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