Read N integers and print their sum, which needs a 64-bit integer type.
You are given NNN integers. Write a program that computes the sum of those NNN integers.
When NNN and every integer are at their largest, the sum is 3,000,000,000,0003{,}000{,}000{,}000{,}0003,000,000,000,000, so a 32-bit integer type cannot hold the answer. Use a 64-bit integer type.
The first line has the number of integers NNN (1≤N≤3,000,0001 \le N \le 3{,}000{,}0001≤N≤3,000,000).
The second line has the NNN integers, separated by single spaces. Each integer is between 000 and 1,000,0001{,}000{,}0001,000,000.
Print the sum of the given NNN integers on the first line.