import std.string, std.stdio, std.algorithm, std.container, std.typecons, std.conv; void main(){ int n; scanf("%d", &n); readln; int[] ans = new int[32]; foreach(i; 0..n){ string s = readln.chomp; auto ss = s.split('.'); if(ss.length == 1){ ss ~= "0"; } // writeln(ss); int sign = ss[0][0] == '-' ? -1 : +1; ss[0] = ss[0].replace("-", "0"); while(ss[0].length < 16) ss[0] = "0" ~ ss[0]; while(ss[1].length < 16) ss[1] ~= "0"; string x = ss[0] ~ ss[1]; foreach(j; 0..32){ ans[j] += sign * (x[j] - '0'); } } foreach_reverse(i; 1..32){ while(ans[i] >= 10){ ans[i] -= 10; ans[i-1] += 1; } while(ans[i] < 0){ ans[i] += 10; ans[i-1] -= 1; } } int sign = ans[0] < 0 ? -1 : +1; foreach(i; 0..32) ans[i] *= sign; foreach_reverse(i; 1..32){ while(ans[i] >= 10){ ans[i] -= 10; ans[i-1] += 1; } while(ans[i] < 0){ ans[i] += 10; ans[i-1] -= 1; } } // writeln(ans); ans = ans[0..26]; // writeln(ans); auto pos = ans[0..16], neg = ans[16..$]; while(pos.length > 1 && pos[0] == 0){ pos = pos[1..$]; } if(sign < 0) write("-"); write(pos.map!(to!string).join); write("."); writeln(neg.map!(to!string).join); }