# Reference: https://www.hackerrank.com/challenges/a-very-big-sum
from hackerrank.lists_exercises import sum_them_all

n = int(input().strip())
arr = [int(arr_temp) for arr_temp in input().strip().split(' ')]
print(sum_them_all(arr))
 def test_sum_them_all(self):
     self.assertEqual(sum_them_all([1, 2, 3, 4, 5]), 15)
     self.assertEqual(sum_them_all([1000000001, 1000000002, 1000000003, 1000000004, 1000000005]), 5000000015)