import sys def main(): N = int(input()) A = sys.stdin.read().splitlines() print(sum(map(int, A))) main()