#include using namespace std; typedef signed long long ll; #undef _P #define _P(...) (void)printf(__VA_ARGS__) #define FOR(x,to) for(x=0;x>N; FOR(i,N) { cin>>s; int minus=1; if(s[0]=='-') { minus=-1; s=s.substr(1); } FOR(j,s.size()) if(s[j]=='.') break; if(j==s.size()) s+="."; while(s.size()-j<11) s+="0"; B=C=0; sscanf(s.c_str(),"%lld.%lld",&B,&C); A[0] += B*minus; A[1] += C*minus; } while(A[1]>=10000000000LL) A[1]-=10000000000LL,A[0]++; while(A[1]<0) A[1]+=10000000000LL,A[0]--; if(A[0]==-1 && A[1]>0) { A[0]++; A[1]=10000000000LL-A[1]; _P("-%lld.%010lld\n",A[0],A[1]); } else if(A[0]<0) { if(A[1]>0) A[0]++,A[1]=10000000000LL-A[1]; _P("%lld.%010lld\n",A[0],A[1]); } else { _P("%lld.%010lld\n",A[0],A[1]); } } int main(int argc,char** argv){ string s;int i; if(argc==1) ios::sync_with_stdio(false); FOR(i,argc-1) s+=argv[i+1],s+='\n'; FOR(i,s.size()) ungetc(s[s.size()-1-i],stdin); solve(); return 0; }