Invert FizzBuzz by dekosuke

y=range
m=[(str(b+1)+" "+str(b+a),filter(len,[i%3/2*"Fizz"+i%5/4*"Buzz"for i in y(b,b+a)]))for a in y(182)for b in y(18)]
while 1:l=raw_input();r=[s for(s,x)in m if x==l.split()];print r and r[0]or""

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

download

return top