# 1行目 n = int(input()) # 2行目 line2 = input() split_line2 = line2.split() sum = 0 for i in range(n): sum += int(split_line2[i]) print(sum)