
    In an ICU monitoring system, write a function that analyzes pairs of vital sign readings to determine how many pairs of measurements show normal correlation patterns. Two vital sign readings are considered normally correlated when their binary sensor values, when XORed together, produce an even number. Given a list of encoded vital sign readings, count all such normally correlated pairs.
    

    
def find_even_pair(A):
    """
    In an ICU monitoring system, write a function that analyzes pairs of vital sign readings to determine how many pairs of measurements show normal correlation patterns. Two vital sign readings are considered normally correlated when their binary sensor values, when XORed together, produce an even number. Given a list of encoded vital sign readings, count all such normally correlated pairs.
    

    """
def find_even_pair(A):
    """
    In an ICU monitoring system, write a function that analyzes pairs of vital sign readings to determine how many pairs of measurements show normal correlation patterns. Two vital sign readings are considered normally correlated when their binary sensor values, when XORed together, produce an even number. Given a list of encoded vital sign readings, count all such normally correlated pairs.
    

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