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