What did the planets near the sun lose because of the sun's temperature?

All their hydrogen and helium.