while True: try: num = int(input()) nums = list(map(int, input().split())) print(sum(nums)) except: break