while 1:
    a,b=map(int,input().split())
    p=a==b==0
    if p:break
    print(a+b)