
    In a bank's transaction monitoring system, determine the number of legitimate transaction pairs by analyzing a list of encoded transaction IDs, where a pair is considered legitimate if the XOR of their encoded IDs results in an even number. Given a list of integer transaction IDs, count how many pairs of transactions could be legitimate based on this security validation rule.
    

    
def find_even_pair(A):
    """
    In a bank's transaction monitoring system, determine the number of legitimate transaction pairs by analyzing a list of encoded transaction IDs, where a pair is considered legitimate if the XOR of their encoded IDs results in an even number. Given a list of integer transaction IDs, count how many pairs of transactions could be legitimate based on this security validation rule.
    

    """
def find_even_pair(A):
    """
    In a bank's transaction monitoring system, determine the number of legitimate transaction pairs by analyzing a list of encoded transaction IDs, where a pair is considered legitimate if the XOR of their encoded IDs results in an even number. Given a list of integer transaction IDs, count how many pairs of transactions could be legitimate based on this security validation rule.
    

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