while""do x=io.read(1):byte()y=0 for i=0,7 do y=y*2+x%2 x=(x-x%2)/2 end io.write(("").char(y))end