You are given a sequence of ( N ) integers ( A_1, A_2, \ldots, A_N ). Your task is to compute the multiplicative inverse of the sum of the inverses of these numbers.
Mathematical Formulation
The desired result can be expressed mathematically as:
[
\text{result} = \frac{1}{\frac{1}{A_1} + \frac{1}{A_2} + \ldots + \frac{1}{A_N}}
]
Input Format
The first line contains a single integer ( N ) (1 ≤ ( N ) ≤ 1000), the number of integers in the sequence.
The second line contains ( N ) space-separated integers ( A_1, A_2, \ldots, A_N ) (1 ≤ ( A_i ) ≤ 1000).
Output Format
Output a single floating-point number representing the result, rounded to six decimal places.
Examples
Example 1
Input
text
3
2 3 4
Output
text
2.400000
Example 2
Input
text
5
1 2 3 4 5
Output
text
1.200000
Implementation
The solution should be implemented in the /app/ directory.