binary increment by feuermonster

b=lambda q:[b(q[:-1])+'0',q[:-1]+'1'][q[-1]<'1']if q!=''else''
while 1:print b(raw_input())

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

download

return top