import sys input = sys.stdin.readline n = int(input()) a = list(map(int, input().split())) p = 1 m = 1000 for x in a: p *= (m - x) / m ans = m * (1 - p) print(ans)