I learned in a high school level Biology class that the chemical equation for cellular respiration is $$\ce{6O2 + C6H12O6 => 6CO2 + 6H2O + ATP}$$
$$\ce{6O2 + C6H12O6 -> 6CO2 + 6H2O + ATP}$$
When I looked up the chemical formula for ATP I found that it is
$$\ce{C10H16N5O13P3}$$ Knowing
Knowing that, that must mean that the first equation becomes $$\ce{6O2 + C6H12O6 => 6CO2 + 6H2O + C10H16N5O13P3}$$ One
$$\ce{6O2 + C6H12O6 -> 6CO2 + 6H2O + C10H16N5O13P3}$$
One of the products contains nitrogen and phosphatephosphorus, but none of the reactants contain those two elements, but there should be in order to produce a product that contains nitrogen and phosphatephosphorus. With my high school knowledge, I cannot figure this out, so where. Where do the nitrogen and the phospatephosphorus atoms come from?