#!/usr/bin/perl -l $_=pop;print,s@.(?=(.))@($&+$+)%9or$&?9:0@ge,chop,while+y///c
#!/usr/bin/perl -l $_=pop;print,s@.(?=(.))@($&+$1)=~/./,$'+$&@ge,chop,while+y///c