What are the outputs of photosynthesis?