Which parts must be balanced in a chemical equation?

A. energy on the reactant and product sides
B. numbers of reactant and product atoms
C. numbers of reactant and product molecules
D. states of reactants and products

B. numbers of reactant and product atoms