#CCBCHBAHAI0000140. Tổng mảng rất lớn (A Very Big Sum)

Tổng mảng rất lớn (A Very Big Sum)

A Very Big Sum

Source: HackerRank

Version: Phuoc Hung OJ Extended

Problem Statement

Given an array of nn non-negative integers, some values can be large enough that their total exceeds the signed 32-bit integer range.

Compute

S=∑i=0n−1aiS=\sum_{i=0}^{n-1}a_i

and print the exact value of SS.

Input

  • The first line contains nn.
  • The second line contains nn integers a0,a1,…,an−1a_0,a_1,\ldots,a_{n-1}.

Output

Print one integer: the sum SS.

Subtasks

Subtask 1 (100 points): 1≤n≤101\le n\le10 and 0≤ai≤10100\le a_i\le10^{10}. The total always fits in signed 64-bit long long.

Examples

Input

5
1000000001 1000000002 1000000003 1000000004 1000000005

Output

5000000015

Explanation

The five values sum to 50000000155000000015. This is larger than 231−12^{31}-1, so a type wider than signed 32-bit int is required.