while 1: v=[0L] for i in raw_input():v=[v[1:],v[:-1],[sum(v)],[reduce(long.__mul__,v,1L)],sum([[j-1,j+1]for j in v],[])][ord(i)/2%5] print`v`.replace('L','')
Note that non-ascii characters in the above source code will be escaped (such as \x9f).
download
return to the top page