Correct answer is adding up the number of protons and neutrons.
The main particles in an atom, and the particles that make up virtually their entire mass, are electrons, protons, and neutrons.
Protons and neutrons weigh about the same, and electrons weigh virtually nothing, so the atomic mass is the sum of protons and neutrons.