import sys n = int(input()) ans = 0 for i in sys.stdin.buffer.readlines(): ans += int(i) print(ans)