for(<>){(@_=/\w\w/g)&&print"#";printf"%02x",255-hex shift@_ while@_;print"\n"}