
    Given a list of user interest compatibility scores from an event recommendation system, determine how many pairs of users could be matched for group activities based on their combined preference patterns. Two users are considered compatible for an event when their binary interest scores, when XORed together, result in an even number, indicating aligned activity preferences. Count and return the total number of such potential event-matching user pairs from the given list of compatibility scores.
    

    
def find_even_pair(A):
    """
    Given a list of user interest compatibility scores from an event recommendation system, determine how many pairs of users could be matched for group activities based on their combined preference patterns. Two users are considered compatible for an event when their binary interest scores, when XORed together, result in an even number, indicating aligned activity preferences. Count and return the total number of such potential event-matching user pairs from the given list of compatibility scores.
    

    """
def find_even_pair(A):
    """
    Given a list of user interest compatibility scores from an event recommendation system, determine how many pairs of users could be matched for group activities based on their combined preference patterns. Two users are considered compatible for an event when their binary interest scores, when XORed together, result in an even number, indicating aligned activity preferences. Count and return the total number of such potential event-matching user pairs from the given list of compatibility scores.
    

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