eolymp
bolt
Try our new interface for solving problems
Problems

Sum of values

Sum of values

Find the sum of values for the function

prb2892

in some integers.

Input

First line contains the number of points n (1n50). Next line contains n integers x1, x2, ..., xn - the points where the function must be calculated and summed up (0 ≤ |xi| ≤ 109).

Output

Print one number - the sum of function values f(x) at given points. The answer is correct if its accuracy is no less than 10-9.

Time limit 1 second
Memory limit 128 MiB
Input example #1
3
1 2 3
Output example #1
7.833333333333333
Input example #2
2
1 -1
Output example #2
0
Source 2012 Kharkiv, Winter School, Day of Sergey Kopelovich, Problem L