#include using namespace std; typedef long long ll; int main() { int n; cin>>n; ll a=0,b=0; while (n--) { string s;cin>>s; int sign=1; if (s[0]=='-') { sign=-1; s=s.substr(1); } int i; for (i=0;i=1e10) b-=1e10,a++; while (b<0) b+=1e10,a--; if (a<0&&b>0) { a++; b=10000000000LL-b; if (a==0) cout<<'-'; } printf("%lld.%010lld\n",a,b); return 0; }