2053: 奥运火炬

Memory Limit:128 MB Time Limit:1.000 S
Judge Style:Text Compare Creator:
Submit:240 Solved:21

Description

Input

第一行一个整数 n,表示n个火炬手。
第二行有n个整数,第i 个整数为 ai,表示 第i个火炬手的意义。


Output

输出共一行一个整数,火炬接力的意义值。

Sample Input Copy

2
1 3

Sample Output Copy

4