N = int(input()) a = input().split() res = 0 for i in range(N): res += int(a[i]) print(res)