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

#698. Largest sum of a window of 5

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

Examples

Input
8
17 5 -11 -2 -4 16 11 1
Output
22
Input
11
-8 19 15 3 -7 -10 20 6 17 -13 -9
Output
26

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