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