sm = list()
for x in range(10):
sm.append(int(input()))
print(sum(sm))
sum = 0
for i in range(10):
number = int(input())
sum += number
print(sum)
sm = list()
for x in range(10):
sm.append(int(input()))
print(sum(sm))
sum = 0
for i in range(10):
number = int(input())
sum += number
print(sum)