n = STDIN.gets.chomp.to_i sum=0 for i in 1..n val = STDIN.gets.chomp.to_r sum += val end puts sprintf("%.10f\n", sum)