import sys for line in sys.stdin.readlines(): value=list(map(int,line.split())) result=sum(value) if result>0: print(result) else: break