a_list = [int(input()) for _ in range(int(input()))] print(sum(a_list))