#!/usr/bin/env python3 # -*- coding: utf-8-*- n = int(input()) a = 0 for i in range(n): a += int(input()) print(a)