while True:
try:
a = list(map(int,input().strip().split()))
add = 0
for num in a:
add+=num
print(add)
except:
break
while True:
try:
a = list(map(int,input().strip().split()))
add = 0
for num in a:
add+=num
print(add)
except:
break