https://www.acmicpc.net/problem/5717
while True: m, f = map(int, input().split()) if m == 0 and f == 0: break print(m + f)