S = [input().rstrip() for i in range(3)] c = S.count("RED") if c < 2: print("BLUE") else: print("RED")