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