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