print("BLUE" if (input()+input()+input()).count("L") >= 2 else "RED")