What does the atomic mass of an atom consist of?

The atomic mass is the weight of both the protons and the neutrons.

e.g oxygen has and atomic mass of 16 and a atomic number of 8

16-8(protons)= 8 neutrons