while""do print((("%08d"):format(io.read()):gsub(("(..)"):rep(4),"%2 %4 %1 %3"):gsub("0(%d)","%1")))end