#include using namespace std; void ins() {} templatevoid ins(T& v,Rest&... rest){cin>>v;ins(rest...);} #define rep(i,n) for(int i=0,_i=(n);i<_i;++i) int main() { int N; cin >> N; long long ans = 0; rep(i, N) { string s; cin >> s; auto pos = s.find("."); if (s == "0") continue; if (pos == string::npos) s += "0000000000"; else { int len = s.size() - 1 - pos; rep(j, 10-len) s += "0"; s = (s.substr(0, pos) == "0" ? "" : s.substr(0, pos)) + s.substr(pos+1); } ans += stoll(s); } string s = to_string(ans); if (ans == 0) cout << 0 << endl; else if (s.size() <= 10 || s[0] == '-' && s.size() <= 11) { string zero = ""; rep(i, 10-(s.size()-(s[0] == '-'))) zero += '0'; if (s[0] == '-') cout << "-0." << zero << s.substr(1) << endl; else cout << "0." << zero << s << endl; } else cout << s.substr(0, s.size()-10) << "." << s.substr(s.size()-10) << endl; return 0; }