N = int(input()) A = [int(a) for a in input().split()] L = 1000 l = L for a in A: l *= (L - a) / L print(f"{L-l:.6f}")