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

#689. Sums of groups of 4

Split the list into groups of 4 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
-7 0
Output
-7
Input
15
-6 -7 -8 -1 -7 5 -4 -4 -2 8 -8 3 1 -3 -1
Output
-22 -10 1 -3

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