while 1:s=input();print(min(max(int(c+d,19)%10for c in s)for d in s))
Note that non-ascii characters in the above source code will be escaped (such as \x9f).
download
return to the top page