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