import java.util.*;
import java.lang.*;
import java.io.*;
class Ideone
{
String x
(String s
){String o
="";char c
;int b
=s.
length(),d,i
=-1,k
=0;d
=s.
indexOf('.');d
=d
<0?b
:d
;if(b
>1)while(++i
<b
)if((c
=s.
charAt(i
))>48)o
+=(k
++>0?" + ":"")+(d
-i
>0?c
:"0.")+(new String(new char[Math.
abs(d
-i
)-1]).
replace("\0",
"0"))+(d
-i
>0?"":c
);return o
;}
{
String o
="";char c
;int b
=s.
length(),d,i
=-1,k
=0; d=s.indexOf('.');d=d<0?b:d;
if(b>1)while(++i<b)
if((c=s.charAt(i))>48)
o+=(k++>0?" + ":"")
+(d-i>0?c:"0.")
+(new String(new char[Math.
abs(d
-i
)-1]).
replace("\0",
"0")) +(d-i>0?"":c);
return o;
}
{
System.
out.
println("9000.0009 = " + x1
("9000.0009")); }
}
aW1wb3J0IGphdmEudXRpbC4qOwppbXBvcnQgamF2YS5sYW5nLio7CmltcG9ydCBqYXZhLmlvLio7CgpjbGFzcyBJZGVvbmUKewoJU3RyaW5nIHgoU3RyaW5nIHMpe1N0cmluZyBvPSIiO2NoYXIgYztpbnQgYj1zLmxlbmd0aCgpLGQsaT0tMSxrPTA7ZD1zLmluZGV4T2YoJy4nKTtkPWQ8MD9iOmQ7aWYoYj4xKXdoaWxlKCsraTxiKWlmKChjPXMuY2hhckF0KGkpKT40OClvKz0oaysrPjA/IiArICI6IiIpKyhkLWk+MD9jOiIwLiIpKyhuZXcgU3RyaW5nKG5ldyBjaGFyW01hdGguYWJzKGQtaSktMV0pLnJlcGxhY2UoIlwwIiwiMCIpKSsoZC1pPjA/IiI6Yyk7cmV0dXJuIG87fQoJCglwdWJsaWMgc3RhdGljIFN0cmluZyB4MShTdHJpbmcgcykKCXsKCQlTdHJpbmcgbz0iIjtjaGFyIGM7aW50IGI9cy5sZW5ndGgoKSxkLGk9LTEsaz0wOwoJCWQ9cy5pbmRleE9mKCcuJyk7ZD1kPDA/YjpkOwoJCQoJCWlmKGI+MSl3aGl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