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