System.in.eachLine{(a,b)=it.split()*.toLong();println~(1e10+~a-3*b+"").tr("3-9","020021")}
Note that non-ascii characters in the above source code will be escaped (such as \x9f).
download
return to the top page