n = gets.to_i sum = 0 n.times { a = Rational(gets) sum += a } print sum.to_i print "." printf("%010d", (sum * 10**10).to_i % 10**10) puts