What are the inputs and outputs of biosynthesis?