x = int(input()) list1 = [] for i in range(1,x+1): num =input() list1.append(num) print(sum(list1))