You are given a sequence of real numbers. And you ought to sum them all. And don’t forget to output the result.
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.
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.
Problem Author: Alexander Klepinin
Problem Source: Ural State University Personal Programming Contest, March 1, 2003