n=gets.to_i xs=gets.split(" ").map{|e| (1000-e.to_f)/1000} r=1.0 xs.each{|x| r*=x } printf("%.10f",1000-1000*r)