import std.algorithm, std.array, std.container, std.range; import std.string, std.conv, std.bigint, std.math, std.random; import std.stdio, std.typecons; const k = 10000000000; void main() { auto n = readln.chomp.to!int; auto ai = iota(n).map!((_) { auto rd = readln.chomp.split('.'); auto i = rd[0].to!long; auto d = rd.length == 2 ? rd[1].leftJustify(10, '0').to!long : 0; if (rd[0].front == '-') d *= -1; return BigInt(i) * k + BigInt(d); }); auto r = ai.sum; if (r < 0) { write("-"); r = -r; } writefln("%d.%010d", r / k, r % k); }