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

#690. Largest sum of a window of 4

Look at the sums of every 4 elements in a row and find the largest one (n ≥ 4). ### Input The first line has n, the second line has n integers separated by spaces. ### Output A number.

Examples

Input
13
-4 13 17 -12 2 17 8 -20 8 2 -7 7 1
Output
24
Input
11
-13 16 13 -6 -13 -2 18 1 0 -3 13
Output
17

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