N = int(input()) list_1 = input().split(" ") s = 0 for i in range(N): s += int(list_1[i]) print(s)