All problems

Switching Themes With set_style

easyPythonSeabornset_style

Marlow & Finch produce charts for clients, and every client has a house look: background shade, whether faint guide lines run behind the bars, how heavy the frame is. That look is set once at the top of the script and applies to everything drawn afterwards. What the client actually checks first, though, is the figure in the caption -- and a restyled chart must not move it.

Task: Print the total of the values.

Input

The first line holds one integer n, the number of values, where 1 <= n <= 1000. Then come n lines, one value each. Values may be negative.

Output

One line holding the total of all the values, rounded to 2 decimal places. The total, not an average and not a count.

Example:

Input:
3
10
20
30

Output:
60.00

Sign in to solve this problem

Reading problems is free for everyone — solving them (Run, Submit, and tracking what you've solved) needs an account.

Sign in

Discussion

Sign in to join the discussion — reading is open to everyone.

Loading comments…