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