This page is still under construction.

Parts of this page are still being built. What you see may change.

Big Money

Time limit1sMemory limit512 MB

Summary
Sum n decimal amounts given in euros with two cent digits each, and print the exact total in the same format.
Level

Easy2 of 10

Topics
Math, Implementation, String
Solved
No attempts yet

Problem

Every year, Paris welcomes tens of millions of tourists, who bring considerable revenue to the city and its tourist industry. As an employee of the tourism bureau of the city of Paris, you are tasked with computing how much money tourists spent during a particular week. You are given credit card receipts for that week and asked to tally them. Because money is important, you want the exact number, down to the cent.

Input

The input consists of n lines, each containing a decimal number that represents an expense e in euros. Every decimal number is formatted as a non-empty sequence of decimal digits, a point (.) used as the decimal separator, and two decimal digits for the fraction in cents.

Output

The output consists of a single line, whose content is the total expenses, a decimal number in the same format as the input.

Constraints

  • 1 ≤ n ≤ 1 000 000
  • 0.00 ≤ e ≤ 1 000 000.00

Examples1

  1. Example 1

    Input
    1432.23
    216.09
    1475.09
    1327.20
    2457.18
    
    Expected output
    6907.79