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

#675. Sum of absolute values

The sum of the absolute values (abs) of all elements. ### Input The first line has n, the second line has n integers separated by spaces. ### Output A number.

Examples

Input
10
25 -25 5 -3 -9 -19 2 -19 -27 8
Output
142
Input
8
10 -7 -20 12 21 6 -18 -13
Output
107

💡 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!