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
input | output |
---|
2
1.5e3
1.5e-3 | 1.500001500000000000e3 |
Problem Author: Alexander Klepinin
Problem Source: Ural State University Personal Programming Contest, March 1, 2003