def vengeful_cooperation(cooperation):
    """
    The vengeful cooperation matrix derived from the cooperation matrix.

    Parameters
    ----------
    cooperation : list
        A cooperation matrix (C)

    Returns
    -------
    list
        A matrix (D) such that:

            Dij = 2(Cij -0.5)
    """
    return [[2 * (element - 0.5) for element in row] for row in cooperation]