Moving "input" to "output"

In the most efficient way possible.