For the given value of n, compute the sum
One positive integer n (n≤1000).
Print the sum with 6 decimal places.