In an exothermic reaction, the energy of the products is the reactants.

In an endothermic reaction the energy of the product is the reactants.