what different elements are used in photosynthesis?

Photosynthesis formula is:

6CO2 + 6H2O ==> C6H12O6 + 6O2

You can take it from there.