# coding: utf-8 N = int(input()) res = 0 for i in range(N): res += int(input()) print(res)