All problems

Avoiding Overlapping Subplot Titles

easyPythonMatplotlibtight_layout

Halewood Reporting gives each panel of a figure its own heading, and by default those headings collide with whatever sits above them — the panels are placed on a fixed grid that takes no account of how much text ends up around them. A spacing pass at the end pushes the panels apart until nothing overlaps. Under the finished figure the brief prints 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.

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
5
10
15

Output:
30

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…