t = [input() for i in range(3)] R=0 B=0 for i in range (3): if t[i]=="RED": R+=1 else: B+=1 if B>R: print ("BLUE") else: print ("RED")