121321 by recursive

while 1:print"".join("987654321"[9-int(c):]if"/"<c<":"else c for c in raw_input())

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

download

return top