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