n = int(input()) a = [int(x) for x in input().split()] sum = 0 for i in range(n): sum += a[i] print(sum)