# -*- coding: utf-8 -*- n = int(input()) a = [] for i in range(0,n): a.append(int(input())) sum = 0 for i in range(0,n): sum += a[i] print(sum)