r=reverse f[]=[] f('1':x)='0':f x f('0':x)='1':x m@main=getLine>>=putStrLn.r.f.r>>m