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

#697. Sums of groups of 5

Split the list into groups of 5 elements in a row (the last group may be smaller). Print the sum of each group. ### Input The first line has n, the second line has n integers separated by spaces. ### Output One line.

Examples

Input
2
-4 -4
Output
-8
Input
5
-1 -10 -10 -8 -3
Output
-32

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