def tobit(s):
for a in s:
for i in xrange(8):
if 1 << i & ord(a): yield 1
else: yield 0
buf = 'abc'
#buf = open('file','rb').read()
for b in tobit(buf):
print b,
1 0 0 0 0 1 1 0 0 1 0 0 0 1 1 0 1 1 0 0 0 1 1 0
def tobit(s):
for a in s:
for i in xrange(8):
if 1 << i & ord(a): yield 1
else: yield 0
buf = 'abc'
#buf = open('file','rb').read()
for b in tobit(buf):
print b,
1 0 0 0 0 1 1 0 0 1 0 0 0 1 1 0 1 1 0 0 0 1 1 0