d=10000000000 c=(1..gets.to_i).map{gets.to_r*d}.inject(:+) puts "%d.%010d"%[c/d,c%d]