while True:
    a, b = map(int, input().split())
    if a == 0 and b == 0:
        break  # 遇到0 0时终止循环
    print(a + b)