using System; using System.Linq; class Program { static void Main(string[] args) { var line1 = Console.ReadLine(); var count = Convert.ToInt32(line1); var total = 0l; foreach (var i in Enumerable.Range(0, count)) { total += Convert.ToInt64(Console.ReadLine()); } Console.WriteLine(total.ToString()); } }