In the fusion reaction that occurs in the core of the Sun:

hydrogen atoms are fused into helium atoms, releasing energy

helium atoms are fused into hydrogen atoms, releasing energy

hydrogen atoms are fused into helium atoms, requiring energy to be put in

helium atoms are fused into hydrogen atoms, requiring energy to be put in

Hydrogen atoms are fused into helium atoms, releasing energy.