#613. N 数相加

N 数相加

Cannot parse: (0 , import_utils.normalizeSubtasks) is not a function or its return value is not iterable

Background

循环数据练习

Description

对 n 个输入的数字 aia_i 进行累加,因为总和比较大,因此最终结果对 1000007 求余即可。

Format

Input

第一行一个整数 n

第二行 n 个整数

Output

一个整数,表示 n 个整数的总和

Samples

4
1 2 3 4
10

Limitation

1n1051\le n \le 10^5

0ai10130\le a_i \le 10^{13}