P10815 [Template] Fast Input

Background

**Stealing the testdata and printing it directly to grab the best score is a serious violation. Depending on the severity, your account may be banned.** Operation “Lift the Restrictions”!

Description

You are given $n$ numbers. You need to compute their sum and output it.

Input Format

The first line contains an integer $n$. The next line contains $n$ integers separated by spaces, representing the given $n$ numbers.

Output Format

Output one number in a single line, which is the sum of the given numbers.

Explanation/Hint

For $25\%$ of the data, $n=10^5$. For $25\%$ of the data, $n=10^6$. For $25\%$ of the data, $n=10^7$. For $25\%$ of the data, $n=10^8$. For $100\%$ of the data, all numbers are within $[-n,n]$. The testdata guarantees that for any prefix of the sequence, the sum of this prefix fits within the storage range of a 32-bit signed integer. Translated by ChatGPT 5