using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace programPractice { class Program { static void Main(string[] args) { int line1 = Int32.Parse(Console.ReadLine()); var stArray = Console.ReadLine().Split(); int[] iArray = new int[line1]; long sum = 0; for (int i = 0; i < line1; i++) { iArray[i] = Int32.Parse(stArray[i]); sum += iArray[i]; } Console.WriteLine(sum); } } }