using System; class Program { static void Main() { long n = long.Parse(Console.ReadLine()); string s = Console.ReadLine(); string[] strs = s.Split(" "); long sum = 0; foreach (string str in strs) { sum += long.Parse(str); } Console.WriteLine("{0}", sum); } }