
    Given a list of risk assessment scores from various investment instruments in a client's portfolio, determine the number of investment pairs that would create balanced risk combinations. Two investments are considered balanced when the XOR operation between their risk scores yields an even number, indicating compatibility in a diversified portfolio strategy.
    

    
def find_even_pair(A):
    """
    Given a list of risk assessment scores from various investment instruments in a client's portfolio, determine the number of investment pairs that would create balanced risk combinations. Two investments are considered balanced when the XOR operation between their risk scores yields an even number, indicating compatibility in a diversified portfolio strategy.
    

    """
def find_even_pair(A):
    """
    Given a list of risk assessment scores from various investment instruments in a client's portfolio, determine the number of investment pairs that would create balanced risk combinations. Two investments are considered balanced when the XOR operation between their risk scores yields an even number, indicating compatibility in a diversified portfolio strategy.
    

    """
    count = 0
    for i in range(0, len(A)):
        for j in range(i + 1, len(A)):
            if (A[i] ^ A[j]) % 2 == 0:
                count += 1
    return count