input() numbers = list(map(int, input().split("\n"))) total = 0 for number in numbers: total += number print(total)