Hanxin Selects Soldiers
时间限制:C/C++/Rust/Pascal 1秒,其他语言2秒
空间限制:C/C++/Rust/Pascal 32 M,其他语言64 M
64bit IO Format: %lld

题目描述

Hanxin selects more soldiers for the better!

Hanxin ordered N soldiers to form an army. Each soldier has his own force value. The overall force value of the army is twice the total force value of all soldiers in the army. Do you know the overall force value of Hanxin's army?


输入描述:

The first line is a positive integer N (1≤N≤100), representing the number of soldiers ordered by Hanxin.

The second line is N positive integers not greater than 1000, representing the force values of N soldiers respectively.



输出描述:

Output an integer, that is, the overall force value of Hanxin's army.

示例1

输入

复制
4
1 2 3 4

输出

复制
20