main=interact$init.f.read.("0x"++).concat.reverse.words f 0="" f x=toEnum(fromIntegral(x`mod`n)):f(x`div`n) n=512::Integer