N = int(input()) d = [int(i) for i in input().split()] print(sum(d))