while True: s = sum(map(int, input().split())) if s == 0: break print(s)