#CCBCHBAHAI0000139. Tổng mảng đơn giản (Simple Array Sum)

Tổng mảng đơn giản (Simple Array Sum)

Simple Array Sum

Source: HackerRank

Version: Phuoc Hung OJ Extended

Problem Statement

Given an integer array A=(a0,a1,…,an−1)A=(a_0,a_1,\ldots,a_{n-1}), compute the sum of all elements:

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

Print 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≤10001\le n\le1000 and 0≤ai≤10000\le a_i\le1000.

Examples

Input

6
1 2 3 4 10 11

Output

31

Explanation

Adding the elements gives 1+2+3+4+10+11=311+2+3+4+10+11=31, so the program prints 31.