
    Given a list of binary credit risk indicators derived from loan applicants' financial metrics, determine the number of applicant pairs whose combined risk assessment (calculated through XOR of their indicators) results in a balanced risk pattern. A balanced risk pattern occurs when the XOR operation between two applicants' indicators yields an even number, indicating complementary risk profiles.
    

    
def find_even_pair(A):
    """
    Given a list of binary credit risk indicators derived from loan applicants' financial metrics, determine the number of applicant pairs whose combined risk assessment (calculated through XOR of their indicators) results in a balanced risk pattern. A balanced risk pattern occurs when the XOR operation between two applicants' indicators yields an even number, indicating complementary risk profiles.
    

    """
def find_even_pair(A):
    """
    Given a list of binary credit risk indicators derived from loan applicants' financial metrics, determine the number of applicant pairs whose combined risk assessment (calculated through XOR of their indicators) results in a balanced risk pattern. A balanced risk pattern occurs when the XOR operation between two applicants' indicators yields an even number, indicating complementary risk profiles.
    

    """
    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