eolymp
bolt
Try our new interface for solving problems
Problems

Sum of inverse squares

Sum of inverse squares

Given value of n, find the sum

prb10168.gif

Input

One positive integer n (n109).

Output

Print the value of the sum with 6 decimal digits.

Time limit 1 second
Memory limit 128 MiB
Input example #1
2
Output example #1
1.250000
Input example #11
1234567
Output example #11
1.644933
Author Mykhailo Medvediev