All problems

Total of the Big Spenders

easyPythonNumPyBoolean Indexing

Still Halcyon Bank, still the same day's payments, and still the same rule: a payment is high-risk when the amount is strictly over $500, so exactly $500 does not count. The compliance team's second figure is not a headcount but an exposure — how many dollars sit inside the marked payments altogether. Quiet days on which nothing is marked still have to fill that line in the report.

Task: Print the combined value of the high-risk payments.

Input

The first line holds a single integer n, the number of payments. Each of the next n lines holds one amount in dollars, which may carry decimals.

Output

One line holding the combined value with exactly two digits after the decimal point. When no payment is marked, that value is 0.00 — a blank line will not do.

Example:

Input:
4
120
600
45
900

Output:
1500.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…