{"trustable":false,"prependHtml":"\u003cscript\u003e window.katexOptions \u003d { disable: true }; \u003c/script\u003e\n\u003cscript type\u003d\"text/x-mathjax-config\"\u003e\n MathJax.Hub.Config({\n tex2jax: {\n inlineMath: [[\u0027$$$\u0027,\u0027$$$\u0027], [\u0027$\u0027,\u0027$\u0027]],\n displayMath: [[\u0027$$$$$$\u0027,\u0027$$$$$$\u0027], [\u0027$$\u0027,\u0027$$\u0027]]\n }\n });\n\u003c/script\u003e\n\u003cscript async src\u003d\"https://mathjax.codeforces.org/MathJax.js?config\u003dTeX-AMS-MML_HTMLorMML\" type\u003d\"text/javascript\"\u003e\u003c/script\u003e","sections":[{"title":"","value":{"format":"HTML","content":"I\n\u003cdiv class\u003d\"panel_content\"\u003e\n Avin’s company has many ongoing projects with different budgets. His company records the budgets using numbers rounded to 3 digits after the decimal place. However, the company is updating the system and all budgets will be rounded to 2 digits after the decimal place. For example, 1.004 will be rounded down\n \u003cbr\u003eto 1.00 while 1.995 will be rounded up to 2.00. Avin wants to know the difference of the total budget caused by the update.\n\u003c/div\u003e"}},{"title":"Input","value":{"format":"HTML","content":"The first line contains an integer n (1 ≤ n ≤ 1, 000). The second line contains n decimals, and the i-th decimal ai (0 ≤ ai ≤ 1e18) represents the budget of the i -th project. All decimals are rounded to 3 digits."}},{"title":"Output","value":{"format":"HTML","content":"Print the difference rounded to 3 digits.."}},{"title":"Sample Input","value":{"format":"HTML","content":"\u003cpre\u003e1\n1.001\n1\n0.999\n2\n1.001 0.999\u003c/pre\u003e"}},{"title":"Sample Output","value":{"format":"HTML","content":"\u003cpre\u003e-0.001\n0.001\n0.000\u003c/pre\u003e"}}]}