N = int(input()) line = input().split(" ") total = 0 for num in line: total += int(num) print(total)