using System; using System.Collections.Generic; using System.Linq; using static System.Console; class Program { static void Main() { var s = 0L; for (int i = 0; i < int.Parse(ReadLine()); i++) s += long.Parse(ReadLine()); WriteLine(s); } }