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