n = int(input()) A = list(map(int, input().split())) res = 1000 for i in range(n - 1): res *= (1000 - A[i]) / 1000 print(1000 - res)