Photosynthesis takes the combination of carbon dioxide (CO2), water (H2O) and light energy, exclusively from the sun. This produces glucose (C6H12O6) and oxygen (6O2.) This is a balanced synthesis.
The equation would be 6CO2 + 6H2O + Light = C6H12O6 + 6O2.