listS=[] for i in range(3): S=input() listS.append(S) R=listS.count("RED") if R>=2: print("RED") else: print("BLUE")