from string import uppercase from Crypto.Util.number import long_to_bytes
defsolve(): withopen('paper','r') as f: data=f.read() cip='' for c in data: if c in uppercase: cip+=c cip=cip.replace('ZERO','0') cip=cip.replace('ONE','1') return long_to_bytes(long(cip,2))