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