l=[int(i) for i in input().split()]
lists = [[]]
for i in range(len(l) + 1):
for j in range(i):
lists.append(l[j: i])
print(lists)
n=len(lists)
new=[]
for i in range(n):
new.append(sum(lists[i]))
print(new)
print(max(new))
To embed this program on your website, copy the following code and paste it into your website's HTML: