N=int(input()) A=list(map(int,input().split())) res=1000 for x in A: res*=(1000-x)/1000 res=1000-res print(res)