using System; class Program { static void Main(string[] args) { //数字の入力 int N = int.Parse(Console.ReadLine()); string[] s = new string[N]; long[] num = new long[N]; //数字の割り当て&和を求める long sum = 0; for (int i = 0; i < N; i++) { s[i] = Console.ReadLine(); num[i] = long.Parse(s[i]); sum += num[i]; } //出力 Console.WriteLine(sum); } }