Atomic mass
The atomic mass and relative isotopic mass are sometimes confused, or incorrectly used, as synonyms of standard atomic weight (also known as atomic weight) and the standard atomic weight (a particular variety of atomic weight, in the sense that is a standardized atomic weight). However, as noted in the introduction, atomic weight and standard atomic weight represent terms for (abundance-weighted) averages of atomic masses in elemental samples, not for single nuclides. As such, atomic weight and standard atomic weight often differ numerically from relative isotopic mass and atomic mass, and they can also have different units than atomic mass when this quantity is not expressed in unified atomic mass units (see the linked article for atomic weight).
Chemical element
The mass number of an element, "A", is the number of nucleons (protons and neutrons) in the atomic nucleus. Different isotopes of a given element are distinguished by their mass numbers, which are conventionally written as a superscript on the left hand side of the atomic symbol (e.g. U). The mass number is always a whole number and has units of "nucleons". For example, magnesium-24 (24 is the mass number) is an atom with 24 nucleons (12 protons and 12 neutrons).