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

#674. Sum of squares

The sum of the squares of all elements. ### Input The first line has n, the second line has n integers separated by spaces. ### Output A number.

Examples

Input
8
2 17 29 12 -7 -25 23 14
Output
2677
Input
9
24 -20 4 -30 11 -19 -24 -3 21
Output
3400

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