#!/usr/bin/python3 import fileinput max = 0 cur = 0 for line in fileinput.input(): line = line.rstrip() if line == "": if cur > max: max = cur cur = 0 continue cur += int(line) if cur > max: max = cur print(max)