All problems

Two Charts, One Figure

easyPythonMatplotlibSubplots

Halewood Reporting produces a one-page daily brief. The same figures appear twice, in two panels side by side: as bars on the left and as a line on the right. A panel is simply one chart inside a figure holding several. Two views of one set of numbers is not waste — a reader comparing individual sizes wants the bars, and a reader following the shape over time wants the line. The headline under both is the day's total.

Task: Print the total of all the values as a whole number, with no decimal point. Any fractional part is dropped rather than rounded, so a total of three and seven tenths prints as 3.

Input

The first line holds an integer n, the number of values. Each of the next n lines holds one value, possibly with decimals. n is at least 1.

Output

One line holding a whole number, with no decimal point and no trailing zero.

Example:

Input:
3
10
20
30

Output:
60

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…