eolymp
bolt
Try our new interface for solving problems
Problems

Find the product 2

Find the product 2

For the given positive integer $n$ find the product $$ \left (1 + \dfrac{1}{1^2} \right ) \cdot \left (1 + \dfrac{1}{2^2} \right ) \cdot \ldots \cdot \left (1 + \dfrac{1}{n^2} \right )$$ \InputFile One integer $n\:(n \le 1000)$. \OutputFile Print the value of the product with $6$ decimal digits.
Time limit 1 second
Memory limit 128 MiB
Input example #1
3
Output example #1
2.777778