In photosynthesis, energy of the sun is used to change carbon dioxide and water into:

trace elements
nitrogen and oxygen
oxygen and sugar
potassium and phosphorus