N = int(input()) A = list(map(int,input().split())) tmp = 1000 for i,v in enumerate(A): tmp*=((1000-v)/1000) print(1000-tmp)