The atomic mass unit, or amu, is based on the mass of a proton and/or the mass of a neutron, as they are the same. The mass of electrons in this case is negligible, as they have a relatively small mass. An atomic mass unit is equal to one-twelfth of a carbon-12 atom.
Hope this helps!