r=map(int,raw_input()) while r:print`r`[1::3];r=[abs(x-y)for x,y in zip(r[1:],r)]

Note that non-ascii characters in the above source code will be escaped (such as \x9f).

download

return top