# 读取数组的长度 n
n = int(input())

# 读取数组元素并转换为整数列表
a = list(map(int, input().split()))

# 计算数组元素之和
result = sum(a)

# 输出结果
print(result)