S1=input() S2=input() S3=input() box=[S1,S2,S3] if box.count("RED")>box.count("BLUE"): print("RED") else: print("BLUE")