N = int(input().rstrip()) aList = [int(input().rstrip()) for _ in range(N)] print(sum(aList))