Calculate The Expenditure

Author: Nazmul Alam

Robin and his friends were making a visit from Dhaka to Coxbazar.  Robin’s one characteristics is that he wants to keep records of his expenditures of every step of his life. Now he wants to keep the expenditure of this tour.  But as he is not so good in keeping the transactions, so he requested you to write a program to help him keep his expenditures.

Input Format

Input starts with a single integer N (1<=N<=100) denoting the number of expenditures. Then next line will contain N numbers containing the amount of each expenditure. You can think that all the expenditures will be grater then 0 and within 2^30.

Output Format

the output you had to print the total expenditure he made in the tour at a single line.after that print a new line.

Samples

Input
10 10 18 1 150 45 30 70 12 35 68
Output
439
Limits
Language Time Memory
GNU C 11 1s 512MB
GNU C++ 14 1s 512MB
GNU C++ 11 1s 512MB
PHP 7 1s 1024MB
Java (OpenJDK 8) 1s 4096MB
Statistics
Login To Submit