import numpy as np
 

n = int(input())
nums = np.array([int(input()) for i in range(n)])
n_total = nums.prod()
n_denominator = sum([n_total/num for num in nums])
ans = n_total / n_denominator
print(ans)
