n=int(input())
a=list(map(int,input().split()))
now=1000
for i in a:
  now*=(1000-i)/1000
print(1000-now)