407056: GYM102697 027 Money Sum

Memory Limit:256 MB Time Limit:1 S
Judge Style:Text Compare Creator:
Submit:0 Solved:0

Description

027. Money Sumtime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard output

You have made $$$n$$$ payments in the past year, and you would like to figure out how much money you have spent in total, in cents.

Input

The first line of input contains a positive integer $$$n$$$, indicating the number of payments that you have made. The next $$$n$$$ lines each contain a positive integer $$$m$$$, indicating the amount that you paid in cents.

Output

Output a single positive integer $$$s$$$: the amount of money that you have spent in total, in cents.

ExampleInput
5
7
11
18
27
20
Output
83

加入题单

算法标签: