import sys

list_1 = []

for line in sys.stdin:
    a = line.split()
    list_1.append(a)

i = 0

while True:
    if int(list_1[i][0]) == 0 and int(list_1[i][1]) == 0:
        break
    else:
        print(int(list_1[i][0]) + int(list_1[i][1]))     
    i += 1