def sum_even_odd(list1):
    
    first_even = next((el for el in list1 if el%2==0),-1)
    first_odd = next((el for el in list1 if el%2!=0),-1)
    return (first_even+first_odd)
def sum_even_odd(list1):
    first_even = next((i0 for i0 in list1 if i0 % 2 == 0), -1)
   
    first_odd = next((i0 for i0 in list1 if i0 % 2 != 0), -1)
    return first_even + first_odd