ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules

USU Personal Contest 2003

About     Problems     Submit solution     Judge status     Standings
Contest is over

G. Sequence Sum

Time limit: 1.0 second
Memory limit: 64 MB
You are given a sequence of real numbers. And you ought to sum them all. And don’t forget to output the result.

Input

The first input line contains a number of the sequence elements N (N ≤ 1000). The next N lines contain the elements in exponential notation with 19 significant digits in mantissa. All the numbers are in a range from 10−100 to 10100.

Output

You are to output the only number which is the sum of all the input numbers. This number is to be presented in an exponential notation with 19 correct digits in mantissa.

Sample

inputoutput
2
1.5e3
1.5e-3
1.500001500000000000e3
Problem Author: Alexander Klepinin
Problem Source: Ural State University Personal Programming Contest, March 1, 2003
To submit the solution for this problem go to the Problem set: 1248. Sequence Sum