r=io.read while r(1)do print(("#%06x"):format(8^8-1-("0x"..r())))end