while 1:e=min;M=e,max;print'range(%d,%d)'%eval('e([%sfor e in M for range in M]),'%raw_input()[4:]*2)
Note that non-ascii characters in the above source code will be escaped (such as \x9f).
download
return to the top page