CodeLab Academy 📞 9936 6696
← List Python · Level 7: Lists Code · 70 points ← #669 #671 →

#670. Even sum - odd sum

Subtract the sum of the odd elements from the sum of the even elements. ### Input The first line has n, the second line has n integers separated by spaces. ### Output A number.

Examples

Input
10
-1 -21 -15 36 31 8 3 -16 -40 -6
Output
-15
Input
6
41 36 -36 16 0 17
Output
-42

💡 You can solve it with Python, JavaScript or blocks. Read the input line by line with input(). Don't print a question (like input("Number: ")). Print exactly what the output asks for, nothing more.

🔒 You can solve the first 3 problems without an account. Sign up for free to solve this one!