Calculate the sum of the first n numbers in the sequence shown in the image.
A natural number n, where 1 \leq n \leq 100.
Output a single number: the sum of the first n numbers of the sequence rounded to three decimal places.
Example 1