N = int(input()) A_sum = 0 A_list = [] while N > 0: A = input() N = N - 1 A_list.append(A) for A_number in A_list: A_sum = A_sum + int(A_number) print(A_sum)