# -*- coding: utf-8 -*- n = int(input()) a = list(map(int,input().split())) sum = 0 for i in a: sum += i print(sum)