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