index = 0
current = 0
biggest = 0
with open("input.txt") as f:
for line in f:
line = line.strip()
if line == "":
if current > biggest:
biggest = current
index += 1
else:
current += int(line)
print(index, biggest)