What are the inputs and outputs of cellular respiration and photosynthesis?

energy
sugar
water
oxygen
carbon
dioxide